Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009602/0.0009602, allocations: 95.31 kB / 16.93 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 184.6 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.508/1.508, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005085/0.0005086, allocations: 19.98 kB / 280.8 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1205, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008732/0.1293, allocations: 6.605 MB / 335 MB, free: 13.36 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005488/0.1348, allocations: 2.606 MB / 337.6 MB, free: 10.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001066/0.1359, allocations: 27.88 kB / 337.7 MB, free: 10.72 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00148/0.1374, allocations: 441.8 kB / 338.1 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001517/0.1389, allocations: 466.6 kB / 338.6 MB, free: 9.828 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007787/0.1397, allocations: 255.6 kB / 338.8 MB, free: 9.578 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001918/0.1416, allocations: 1.046 MB / 339.8 MB, free: 8.527 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007034/0.1423, allocations: 444.4 kB / 340.3 MB, free: 8.078 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005282/0.1429, allocations: 426.2 kB / 340.7 MB, free: 7.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005619/0.1435, allocations: 477.6 kB / 341.2 MB, free: 7.191 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.439e-05/0.1436, allocations: 56 kB / 341.2 MB, free: 7.137 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002823/0.1438, allocations: 99.92 kB / 341.3 MB, free: 7.039 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001945/0.1441, allocations: 191.1 kB / 341.5 MB, free: 6.852 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002228/0.1443, allocations: 253.1 kB / 341.7 MB, free: 6.598 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.1455, allocations: 1.285 MB / 343 MB, free: 5.309 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1455, allocations: 0 / 343 MB, free: 5.309 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1455, allocations: 0 / 343 MB, free: 5.309 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.1455, allocations: 0 / 343 MB, free: 5.309 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002318/0.1479, allocations: 1.3 MB / 344.3 MB, free: 3.953 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.1479, allocations: 8.031 kB / 344.3 MB, free: 3.945 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002081/0.1481, allocations: 152.1 kB / 344.5 MB, free: 3.789 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005329/0.1487, allocations: 174.3 kB / 344.7 MB, free: 3.617 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.1499, allocations: 0.758 MB / 345.4 MB, free: 2.816 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.704e-05/0.15, allocations: 70 kB / 345.5 MB, free: 2.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000141/0.1501, allocations: 99.91 kB / 345.6 MB, free: 2.652 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.1517, allocations: 0.9419 MB / 346.5 MB, free: 1.668 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.09e-05/0.1518, allocations: 3.984 kB / 346.5 MB, free: 1.664 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.497e-05/0.1519, allocations: 44 kB / 346.6 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.684e-05/0.1519, allocations: 24 kB / 346.6 MB, free: 1.598 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.1531, allocations: 0.6363 MB / 347.2 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006238/0.1594, allocations: 4.084 MB / 351.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.1607, allocations: 463.2 kB / 351.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.969e-05/0.1608, allocations: 8.609 kB / 351.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.766e-05/0.1608, allocations: 38.56 kB / 351.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 3.326e-06/0.1608, allocations: 0 / 351.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003159/0.164, allocations: 1.352 MB / 353.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.945e-05/0.1641, allocations: 110.8 kB / 353.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/0.1654, allocations: 0.8354 MB / 354.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.723e-05/0.1654, allocations: 33.7 kB / 354.1 MB, free: 9.684 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006329/0.1661, allocations: 0.5954 MB / 354.7 MB, free: 9.078 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001775/0.1663, allocations: 149.9 kB / 354.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.867e-05/0.1663, allocations: 12 kB / 354.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002181/0.1665, allocations: 334 kB / 355.2 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003574/0.1669, allocations: 165.9 kB / 355.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000732/0.1676, allocations: 497.7 kB / 355.9 MB, free: 7.793 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004776/0.1681, allocations: 243.7 kB / 356.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.1681, allocations: 4 kB / 356.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001323/0.1695, allocations: 0.7506 MB / 356.9 MB, free: 6.789 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002212/0.1717, allocations: 4.093 MB / 361 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/0.1717, allocations: 8 kB / 361 MB, free: 2.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002057/0.1719, allocations: 44.78 kB / 361 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006037/0.1726, allocations: 167.7 kB / 361.2 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/0.1739, allocations: 1.299 MB / 362.5 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007041/0.1746, allocations: 44.23 kB / 362.5 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.185e-05/0.1747, allocations: 35.94 kB / 362.6 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.1747, allocations: 7.953 kB / 362.6 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000984/0.1757, allocations: 0.6134 MB / 363.2 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.1757, allocations: 8 kB / 363.2 MB, free: 8 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001099/0.1758, allocations: 37.41 kB / 363.2 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005274/0.1764, allocations: 163.8 kB / 363.4 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009936/0.1774, allocations: 1.296 MB / 364.7 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005309/0.1779, allocations: 40.05 kB / 364.7 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.394e-05/0.178, allocations: 32 kB / 364.7 MB, free: 14.31 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000653/0.1787, allocations: 344.7 kB / 365.1 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001462/0.1788, allocations: 94.88 kB / 365.2 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008778/0.1797, allocations: 439.2 kB / 365.6 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1797, allocations: 4 kB / 365.6 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1797, allocations: 0 / 365.6 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.1797, allocations: 0 / 365.6 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002269/0.182, allocations: 1.363 MB / 367 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.182, allocations: 7.953 kB / 367 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003624/0.1824, allocations: 79.84 kB / 367.1 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.986e-05/0.1825, allocations: 24.84 kB / 367.1 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.758e-05/0.1826, allocations: 16.16 kB / 367.1 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00133/0.1839, allocations: 1.276 MB / 368.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.1839, allocations: 4.062 kB / 368.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001378/0.1853, allocations: 0.8081 MB / 369.2 MB, free: 9.555 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002952/0.1856, allocations: 196 kB / 369.4 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.1857, allocations: 8 kB / 369.4 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003692/0.1861, allocations: 31.97 kB / 369.4 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.497e-05/0.1862, allocations: 27.92 kB / 369.4 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.408e-05/0.1862, allocations: 12 kB / 369.4 MB, free: 9.266 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008724/0.1871, allocations: 0.5548 MB / 370 MB, free: 8.699 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1871, allocations: 0 / 370 MB, free: 8.699 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00144/0.1886, allocations: 359.9 kB / 370.4 MB, free: 8.348 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001936/0.1905, allocations: 1.863 MB / 372.2 MB, free: 6.402 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00188/0.1924, allocations: 0.967 MB / 373.2 MB, free: 5.414 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.1924, allocations: 4 kB / 373.2 MB, free: 5.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004507/0.1929, allocations: 291.1 kB / 373.5 MB, free: 5.113 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.194, allocations: 219.9 kB / 373.7 MB, free: 4.898 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1876/0.3816, allocations: 12.36 MB / 386 MB, free: 46.61 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006658/0.3823, allocations: 1.048 MB / 387.1 MB, free: 45.9 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006096/0.383, allocations: 121.6 kB / 387.2 MB, free: 45.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004446/0.3834, allocations: 399.4 kB / 387.6 MB, free: 45.77 MB / 318.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3834, allocations: 0 / 387.6 MB, free: 45.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03406/0.4175, allocations: 17.73 MB / 405.3 MB, free: 36.8 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/0.4177, allocations: 231.5 kB / 405.6 MB, free: 36.55 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.137/2.555, allocations: 4 kB / 405.6 MB, free: 36.55 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat