Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",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.0009103/0.0009103, allocations: 95.33 kB / 17 MB, free: 6.418 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.001015/0.001015, allocations: 188.6 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 223.3 MB / 241.9 MB, free: 14.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2166/0.2166, allocations: 44.22 MB / 337.2 MB, free: 2.566 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002978/0.0002978, allocations: 8 kB / 409.7 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1298, allocations: 61.92 MB / 471.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.00722/0.137, allocations: 4.961 MB / 476.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004141/0.1412, allocations: 2.124 MB / 478.7 MB, free: 6.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009026/0.1421, allocations: 39.75 kB / 478.8 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004301/0.1426, allocations: 162.6 kB / 478.9 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004184/0.143, allocations: 150.8 kB / 479.1 MB, free: 6.164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009531/0.144, allocations: 295.4 kB / 479.4 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001123/0.1451, allocations: 0.9773 MB / 480.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007689/0.1459, allocations: 417.9 kB / 480.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003906/0.1463, allocations: 262.8 kB / 481 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000335/0.1466, allocations: 286.4 kB / 481.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.074e-05/0.1467, allocations: 32 kB / 481.3 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002284/0.1469, allocations: 83.97 kB / 481.4 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001385/0.1471, allocations: 131.4 kB / 481.5 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.1473, allocations: 189.2 kB / 481.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009025/0.1482, allocations: 0.9274 MB / 482.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.1482, allocations: 0 / 482.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1482, allocations: 0 / 482.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.1482, allocations: 0 / 482.6 MB, free: 2.57 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.00149/0.1497, allocations: 0.9745 MB / 483.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/0.1498, allocations: 8.031 kB / 483.6 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001698/0.15, allocations: 143.7 kB / 483.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.1501, allocations: 98.78 kB / 483.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007763/0.1509, allocations: 0.5587 MB / 484.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.308e-05/0.1509, allocations: 66 kB / 484.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.1511, allocations: 92 kB / 484.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.1526, allocations: 0.8814 MB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.376e-05/0.1527, allocations: 7.906 kB / 485.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.259e-05/0.1527, allocations: 40 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.718e-05/0.1528, allocations: 31.98 kB / 485.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/0.1538, allocations: 0.519 MB / 486 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003958/0.1578, allocations: 3.651 MB / 489.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005591/0.1584, allocations: 223.2 kB / 489.9 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.1585, allocations: 112.8 kB / 490 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002795/0.1588, allocations: 243.3 kB / 490.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.1589, allocations: 42.56 kB / 490.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.645e-06/0.1589, allocations: 0 / 490.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002439/0.1613, allocations: 1.288 MB / 491.6 MB, free: 9.113 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.1614, allocations: 59.34 kB / 491.6 MB, free: 9.043 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004605/0.1619, allocations: 397.8 kB / 492 MB, free: 8.641 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.1619, allocations: 33.7 kB / 492.1 MB, free: 8.602 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003256/0.1622, allocations: 466.1 kB / 492.5 MB, free: 8.137 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.1623, allocations: 138 kB / 492.7 MB, free: 8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.712e-05/0.1624, allocations: 16 kB / 492.7 MB, free: 7.984 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.1626, allocations: 366.7 kB / 493 MB, free: 7.617 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.1628, allocations: 113.1 kB / 493.1 MB, free: 7.508 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003476/0.1631, allocations: 302.2 kB / 493.4 MB, free: 7.125 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002847/0.1634, allocations: 172.7 kB / 493.6 MB, free: 6.957 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1634, allocations: 0 / 493.6 MB, free: 6.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000775/0.1642, allocations: 0.5087 MB / 494.1 MB, free: 6.438 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.1642, allocations: 8 kB / 494.1 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.1643, allocations: 4 kB / 494.1 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00022/0.1645, allocations: 41.47 kB / 494.2 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003699/0.1649, allocations: 131.8 kB / 494.3 MB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004293/0.1653, allocations: 0.5601 MB / 494.9 MB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002076/0.1655, allocations: 16 kB / 494.9 MB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.036e-05/0.1656, allocations: 31.98 kB / 494.9 MB, free: 5.621 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003703/0.166, allocations: 222.2 kB / 495.1 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.282e-05/0.166, allocations: 55.48 kB / 495.2 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006388/0.1667, allocations: 339 kB / 495.5 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.1667, allocations: 4 kB / 495.5 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.1667, allocations: 0 / 495.5 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.1667, allocations: 7.922 kB / 495.5 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001496/0.1682, allocations: 1.054 MB / 496.6 MB, free: 3.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1683, allocations: 8.156 kB / 496.6 MB, free: 3.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000341/0.1686, allocations: 83.89 kB / 496.7 MB, free: 3.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001346/0.1687, allocations: 28.84 kB / 496.7 MB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.1688, allocations: 8 kB / 496.7 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005571/0.1693, allocations: 0.5562 MB / 497.3 MB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.1694, allocations: 4.031 kB / 497.3 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008632/0.1702, allocations: 0.5672 MB / 497.8 MB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.1703, allocations: 120.5 kB / 497.9 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.936e-05/0.1704, allocations: 11.95 kB / 498 MB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.1706, allocations: 8 kB / 498 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.105e-05/0.1706, allocations: 23.97 kB / 498 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.667e-05/0.1707, allocations: 15.98 kB / 498 MB, free: 2.344 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000297/0.171, allocations: 259.2 kB / 498.3 MB, free: 2.094 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.171, allocations: 4 kB / 498.3 MB, free: 2.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006907/0.1717, allocations: 132.1 kB / 498.4 MB, free: 1.961 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001308/0.173, allocations: 1.109 MB / 499.5 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006689/0.1737, allocations: 331.9 kB / 499.8 MB, free: 496 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1737, allocations: 5.562 kB / 499.8 MB, free: 492 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000258/0.1739, allocations: 136.1 kB / 500 MB, free: 356 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/0.1745, allocations: 72.28 kB / 0.4883 GB, free: 288 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005459/0.18, allocations: 3.781 MB / 0.492 GB, free: 12.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006644/0.1807, allocations: 0.96 MB / 0.4929 GB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002224/0.1809, allocations: 56.53 kB / 0.493 GB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003764/0.1813, allocations: 295.7 kB / 0.4933 GB, free: 11.02 MB / 382.1 MB Notification: Performance of SimCode: time 1.343e-06/0.1813, allocations: 0 / 0.4933 GB, free: 11.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02476/0.2061, allocations: 9.321 MB / 0.5024 GB, free: 1.879 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001766/0.2063, allocations: 209.7 kB / 0.5026 GB, free: 1.637 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.163, allocations: 0 / 0.5026 GB, free: 1.637 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat