Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008128/0.0008182, allocations: 96 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009093/0.0009094, allocations: 195.2 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2172/0.2172, allocations: 45.93 MB / 344.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000259/0.000259, allocations: 11.94 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1479, allocations: 63.47 MB / 481.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0006248/0.1486, allocations: 207 kB / 481.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002853/0.1515, allocations: 2.016 MB / 483.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.708e-05/0.1515, allocations: 4 kB / 483.9 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.261e-05/0.1515, allocations: 0 / 483.9 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.168e-05/0.1515, allocations: 0 / 483.9 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008808/0.1524, allocations: 291.3 kB / 484.1 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.248e-05/0.1525, allocations: 0 / 484.1 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.068e-05/0.1525, allocations: 7.984 kB / 484.2 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.381e-05/0.1525, allocations: 0 / 484.2 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003724/0.1563, allocations: 2.427 MB / 486.6 MB, free: 312 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.093e-05/0.1563, allocations: 0 / 486.6 MB, free: 312 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.737e-05/0.1564, allocations: 4 kB / 486.6 MB, free: 308 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.843e-06/0.1564, allocations: 3.938 kB / 486.6 MB, free: 304 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.522e-05/0.1564, allocations: 25.7 kB / 486.6 MB, free: 272 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.988e-05/0.1565, allocations: 11.92 kB / 486.6 MB, free: 260 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1565, allocations: 4 kB / 486.6 MB, free: 256 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1565, allocations: 0 / 486.6 MB, free: 256 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.1565, allocations: 0 / 486.6 MB, free: 256 kB / 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.0002689/0.1568, allocations: 315.4 kB / 486.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.1568, allocations: 12.03 kB / 486.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.92e-05/0.1569, allocations: 105.8 kB / 487.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.1571, allocations: 91.2 kB / 487.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.1572, allocations: 234.4 kB / 487.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.815e-05/0.1573, allocations: 150.6 kB / 487.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.594e-05/0.1573, allocations: 158.5 kB / 487.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.957e-05/0.1574, allocations: 105 kB / 487.8 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.316e-05/0.1574, allocations: 83.17 kB / 487.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.589e-05/0.1575, allocations: 154.5 kB / 488 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.507e-05/0.1576, allocations: 154.6 kB / 488.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.587e-05/0.1576, allocations: 150.6 kB / 488.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002769/0.1579, allocations: 453.9 kB / 488.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.852e-05/0.158, allocations: 165.1 kB / 488.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.882e-05/0.158, allocations: 84.08 kB / 489 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.049e-05/0.1581, allocations: 79.28 kB / 489.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.383e-05/0.1581, allocations: 109.8 kB / 489.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 7.41e-07/0.1581, allocations: 0 / 489.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 6.626e-05/0.1582, allocations: 29.66 kB / 489.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.789e-05/0.1583, allocations: 182.1 kB / 489.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.751e-05/0.1584, allocations: 97.84 kB / 489.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.1584, allocations: 25.7 kB / 489.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.587e-05/0.1585, allocations: 80.14 kB / 489.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.475e-06/0.1585, allocations: 0 / 489.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.3e-07/0.1585, allocations: 4.125 kB / 489.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1586, allocations: 310.8 kB / 489.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.759e-06/0.1586, allocations: 7.938 kB / 489.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.046e-05/0.1586, allocations: 9.719 kB / 489.9 MB, free: 12.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.173e-05/0.1587, allocations: 75.28 kB / 490 MB, free: 12.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.398e-05/0.1587, allocations: 75.28 kB / 490.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.684e-05/0.1588, allocations: 33.7 kB / 490.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/0.1588, allocations: 83.31 kB / 490.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.139e-05/0.1589, allocations: 87.2 kB / 490.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.439e-05/0.1589, allocations: 150.6 kB / 490.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.817e-05/0.159, allocations: 79.23 kB / 490.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.919e-05/0.159, allocations: 154.5 kB / 490.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.031e-05/0.1591, allocations: 79.28 kB / 490.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.238e-05/0.1591, allocations: 83.22 kB / 490.8 MB, free: 11.82 MB / 366.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.0001252/0.1593, allocations: 260.4 kB / 491 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.88e-05/0.1593, allocations: 112.9 kB / 491.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.903e-05/0.1594, allocations: 108 kB / 491.3 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-05/0.1595, allocations: 176.3 kB / 491.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.889e-05/0.1595, allocations: 188.2 kB / 491.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.566e-05/0.1596, allocations: 188.2 kB / 491.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002225/0.1598, allocations: 397.2 kB / 492.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.421e-05/0.1599, allocations: 108.9 kB / 492.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.026e-05/0.1599, allocations: 101 kB / 492.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.74e-05/0.16, allocations: 180.3 kB / 492.6 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.918e-05/0.1601, allocations: 196.1 kB / 492.8 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-05/0.1601, allocations: 180.3 kB / 492.9 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-05/0.1602, allocations: 180.2 kB / 493.1 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001285/0.1603, allocations: 308.1 kB / 493.4 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.813e-05/0.1604, allocations: 190.1 kB / 493.6 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.906e-05/0.1605, allocations: 176.3 kB / 493.8 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.115e-05/0.1606, allocations: 108.9 kB / 493.9 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.961e-05/0.1607, allocations: 176.3 kB / 494 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-05/0.1607, allocations: 105 kB / 494.1 MB, free: 8.238 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.547e-05/0.1607, allocations: 87.28 kB / 494.2 MB, free: 8.152 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1608, allocations: 3.938 kB / 494.2 MB, free: 8.148 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002433/0.161, allocations: 3.953 kB / 494.2 MB, free: 8.145 MB / 366.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.0003681/0.1614, allocations: 0.7937 MB / 495 MB, free: 7.324 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.866e-05/0.1614, allocations: 4 kB / 495 MB, free: 7.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1614, allocations: 4.094 kB / 495 MB, free: 7.316 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.545e-06/0.1614, allocations: 3.938 kB / 495 MB, free: 7.312 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.1618, allocations: 0.5247 MB / 495.6 MB, free: 6.785 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003297/0.1621, allocations: 179.5 kB / 495.7 MB, free: 6.566 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002782/0.1624, allocations: 0.6731 MB / 496.4 MB, free: 5.867 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.932e-05/0.1624, allocations: 4 kB / 496.4 MB, free: 5.863 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.255e-05/0.1625, allocations: 7.438 kB / 496.4 MB, free: 5.855 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1625, allocations: 0 / 496.4 MB, free: 5.855 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01111/0.1736, allocations: 0.8166 MB / 497.2 MB, free: 5.16 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002445/0.1739, allocations: 188.9 kB / 497.4 MB, free: 4.918 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/1.96, allocations: 0 / 497.4 MB, free: 4.918 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat does not exist to compare? outputFormat=mat