Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.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.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",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.0008575/0.0008576, allocations: 96.23 kB / 17 MB, free: 6.402 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.0009502/0.0009502, allocations: 179.9 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.437/1.437, allocations: 223.2 MB / 241.9 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2067/0.2067, allocations: 44.23 MB / 337.2 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004796/0.0004797, allocations: 13.97 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1535, allocations: 61.92 MB / 471.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0006907/0.1543, allocations: 206.9 kB / 471.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003388/0.1577, allocations: 1.905 MB / 473.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.464e-05/0.1577, allocations: 0 / 473.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.121e-05/0.1578, allocations: 0 / 473.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.492e-05/0.1578, allocations: 0 / 473.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00128/0.1591, allocations: 286.9 kB / 474 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.772e-05/0.1591, allocations: 4 kB / 474 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.186e-05/0.1592, allocations: 4 kB / 474 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.827e-05/0.1592, allocations: 0 / 474 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0041/0.1633, allocations: 2.42 MB / 476.5 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.141e-05/0.1633, allocations: 3.938 kB / 476.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.803e-05/0.1634, allocations: 4 kB / 476.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.006e-05/0.1634, allocations: 0 / 476.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.833e-05/0.1635, allocations: 25.7 kB / 476.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.521e-05/0.1635, allocations: 15.92 kB / 476.5 MB, free: 8.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.1636, allocations: 4 kB / 476.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1636, allocations: 3.938 kB / 476.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.1636, allocations: 4 kB / 476.5 MB, free: 8.738 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0002804/0.1639, allocations: 303.4 kB / 476.8 MB, free: 8.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.1639, allocations: 8.094 kB / 476.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.294e-05/0.164, allocations: 109.8 kB / 476.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002409/0.1642, allocations: 87.22 kB / 477 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.1644, allocations: 242.4 kB / 477.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.737e-05/0.1644, allocations: 150.6 kB / 477.4 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.014e-05/0.1645, allocations: 154.6 kB / 477.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.345e-05/0.1646, allocations: 105 kB / 477.7 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/0.1646, allocations: 75.28 kB / 477.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.831e-05/0.1647, allocations: 150.6 kB / 477.9 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-05/0.1647, allocations: 158.5 kB / 478 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.51e-05/0.1648, allocations: 150.6 kB / 478.2 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004457/0.1653, allocations: 449.9 kB / 478.6 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.113e-05/0.1654, allocations: 165.1 kB / 478.8 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.1655, allocations: 84.14 kB / 478.9 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.1655, allocations: 79.22 kB / 478.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.39e-05/0.1656, allocations: 109.8 kB / 479 MB, free: 6.027 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.92e-07/0.1656, allocations: 0 / 479 MB, free: 6.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.267e-05/0.1657, allocations: 33.69 kB / 479.1 MB, free: 5.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.982e-05/0.1658, allocations: 178.1 kB / 479.2 MB, free: 5.789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.38e-05/0.1659, allocations: 93.86 kB / 479.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.1659, allocations: 29.7 kB / 479.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.448e-05/0.1659, allocations: 80.14 kB / 479.4 MB, free: 5.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.924e-06/0.1659, allocations: 0 / 479.4 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1e-07/0.1659, allocations: 0 / 479.4 MB, free: 5.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.1661, allocations: 318.7 kB / 479.8 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.158e-06/0.1662, allocations: 3.938 kB / 479.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.233e-05/0.1662, allocations: 25.78 kB / 479.8 MB, free: 5.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.978e-05/0.1662, allocations: 75.33 kB / 479.9 MB, free: 5.141 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001022/0.1663, allocations: 79.28 kB / 479.9 MB, free: 5.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.818e-05/0.1664, allocations: 33.69 kB / 480 MB, free: 5.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.3e-05/0.1665, allocations: 79.28 kB / 480 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.084e-05/0.1665, allocations: 79.22 kB / 480.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001273/0.1666, allocations: 150.6 kB / 480.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.674e-05/0.1667, allocations: 83.31 kB / 480.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-05/0.1667, allocations: 154.5 kB / 480.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.772e-05/0.1668, allocations: 79.28 kB / 480.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.196e-05/0.1669, allocations: 83.2 kB / 480.7 MB, free: 4.324 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002257/0.1671, allocations: 264.9 kB / 480.9 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.192e-05/0.1672, allocations: 105 kB / 481 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.403e-05/0.1672, allocations: 108.1 kB / 481.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-05/0.1673, allocations: 180.2 kB / 481.3 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.345e-05/0.1674, allocations: 184.2 kB / 481.5 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-05/0.1675, allocations: 180.2 kB / 481.7 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002494/0.1677, allocations: 405.2 kB / 482.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.874e-05/0.1678, allocations: 109 kB / 482.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.082e-05/0.1678, allocations: 108.9 kB / 482.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.418e-05/0.1679, allocations: 184.3 kB / 482.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.258e-05/0.168, allocations: 184.2 kB / 482.6 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.27e-05/0.168, allocations: 176.3 kB / 482.8 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.519e-05/0.1681, allocations: 180.3 kB / 483 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001537/0.1683, allocations: 311.7 kB / 483.3 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.653e-05/0.1684, allocations: 186 kB / 483.5 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.05e-05/0.1685, allocations: 176.3 kB / 483.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.595e-05/0.1686, allocations: 105 kB / 483.7 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.134e-05/0.1687, allocations: 188.6 kB / 483.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.353e-05/0.1687, allocations: 105 kB / 484 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.192e-05/0.1688, allocations: 75.28 kB / 484.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1688, allocations: 0 / 484.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002934/0.1691, allocations: 4 kB / 484.1 MB, free: 0.6562 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004632/0.1695, allocations: 0.8088 MB / 484.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.636e-05/0.1696, allocations: 4.016 kB / 484.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1696, allocations: 3.938 kB / 484.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.455e-06/0.1696, allocations: 0 / 484.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004952/0.1701, allocations: 0.5324 MB / 485.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00042/0.1705, allocations: 175.6 kB / 485.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.171, allocations: 0.6731 MB / 486.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.607e-05/0.171, allocations: 7.984 kB / 486.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.294e-05/0.171, allocations: 7.438 kB / 486.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.171, allocations: 0 / 486.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01227/0.1833, allocations: 0.8181 MB / 487.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002195/0.1835, allocations: 187 kB / 487.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.716/1.899, allocations: 3.875 kB / 487.3 MB, free: 13.41 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat does not exist to compare? outputFormat=mat