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.0008704/0.0008698, allocations: 91.72 kB / 16.98 MB, free: 5.938 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.0008596/0.0008596, allocations: 185.2 kB / 17.87 MB, free: 5.594 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.397/1.397, allocations: 223.2 MB / 241.8 MB, free: 14.62 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.2011/0.2011, allocations: 44.22 MB / 337.1 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003508, allocations: 12 kB / 409.6 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1374, allocations: 61.91 MB / 471.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0006462/0.1381, allocations: 207 kB / 471.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002627/0.1408, allocations: 1.894 MB / 473.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.785e-05/0.1408, allocations: 0 / 473.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.156e-05/0.1408, allocations: 0 / 473.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.854e-05/0.1409, allocations: 0 / 473.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.1419, allocations: 283.2 kB / 473.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.868e-05/0.1419, allocations: 3.938 kB / 473.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.654e-05/0.142, allocations: 0 / 473.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.575e-05/0.142, allocations: 8 kB / 473.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002668/0.1447, allocations: 1.854 MB / 475.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.1447, allocations: 3.984 kB / 475.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.225e-05/0.1448, allocations: 7.984 kB / 475.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.135e-06/0.1448, allocations: 0 / 475.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.709e-05/0.1449, allocations: 25.7 kB / 475.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.478e-05/0.1449, allocations: 4 kB / 475.8 MB, free: 9.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.145, allocations: 4 kB / 475.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.145, allocations: 0 / 475.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.145, allocations: 0 / 475.8 MB, free: 9.324 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.0003105/0.1453, allocations: 319.4 kB / 476.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.1453, allocations: 8.031 kB / 476.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.122e-05/0.1454, allocations: 109.8 kB / 476.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002301/0.1457, allocations: 79.28 kB / 476.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.1458, allocations: 238.3 kB / 476.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.902e-05/0.1459, allocations: 154.6 kB / 476.7 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.716e-05/0.146, allocations: 162.5 kB / 476.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.607e-05/0.1461, allocations: 105 kB / 477 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.21e-05/0.1461, allocations: 79.22 kB / 477 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.534e-05/0.1462, allocations: 154.6 kB / 477.2 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.461e-05/0.1463, allocations: 154.6 kB / 477.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.336e-05/0.1463, allocations: 150.6 kB / 477.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002908/0.1466, allocations: 438 kB / 477.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.217e-05/0.1467, allocations: 185.1 kB / 478.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.1468, allocations: 79.28 kB / 478.2 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.114e-05/0.1468, allocations: 109.8 kB / 478.3 MB, free: 6.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.212e-06/0.1468, allocations: 0 / 478.3 MB, free: 6.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.472e-05/0.1469, allocations: 29.7 kB / 478.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.854e-05/0.147, allocations: 182 kB / 478.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.771e-05/0.1471, allocations: 89.86 kB / 478.6 MB, free: 6.336 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.1471, allocations: 29.83 kB / 478.6 MB, free: 6.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.072e-05/0.1472, allocations: 84.14 kB / 478.7 MB, free: 6.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.841e-06/0.1472, allocations: 4 kB / 478.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.4e-07/0.1472, allocations: 3.938 kB / 478.7 MB, free: 6.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1473, allocations: 314.8 kB / 479 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.248e-06/0.1473, allocations: 0 / 479 MB, free: 5.891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.361e-05/0.1474, allocations: 9.719 kB / 479 MB, free: 5.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.367e-05/0.1474, allocations: 83.34 kB / 479.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.273e-05/0.1475, allocations: 79.31 kB / 479.2 MB, free: 5.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.32e-05/0.1475, allocations: 25.7 kB / 479.2 MB, free: 5.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.114e-05/0.1476, allocations: 87.22 kB / 479.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.482e-05/0.1476, allocations: 79.23 kB / 479.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.651e-05/0.1477, allocations: 154.6 kB / 479.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.767e-05/0.1477, allocations: 79.22 kB / 479.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.243e-05/0.1478, allocations: 162.5 kB / 479.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.067e-05/0.1479, allocations: 79.22 kB / 479.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.842e-05/0.1479, allocations: 75.28 kB / 479.9 MB, free: 4.977 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.0001204/0.148, allocations: 260.9 kB / 480.2 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.431e-05/0.1481, allocations: 105 kB / 480.3 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.807e-05/0.1482, allocations: 108 kB / 480.4 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.3e-05/0.1482, allocations: 192.2 kB / 480.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.486e-05/0.1483, allocations: 180.2 kB / 480.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.006e-05/0.1484, allocations: 176.3 kB / 480.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002252/0.1486, allocations: 409.2 kB / 481.3 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.153e-05/0.1487, allocations: 104.9 kB / 481.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.938e-05/0.1487, allocations: 105 kB / 481.5 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.904e-05/0.1488, allocations: 180.2 kB / 481.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.981e-05/0.1489, allocations: 180.3 kB / 481.9 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.732e-05/0.1489, allocations: 180.2 kB / 482 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.496e-05/0.149, allocations: 192.1 kB / 482.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001406/0.1491, allocations: 307.7 kB / 482.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.894e-05/0.1492, allocations: 178.1 kB / 482.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.807e-05/0.1493, allocations: 188.2 kB / 482.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.121e-05/0.1494, allocations: 104.9 kB / 483 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.038e-05/0.1495, allocations: 180.2 kB / 483.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.776e-05/0.1496, allocations: 112.9 kB / 483.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.842e-05/0.1496, allocations: 75.28 kB / 483.3 MB, free: 1.309 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1496, allocations: 0 / 483.3 MB, free: 1.309 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002583/0.1499, allocations: 0 / 483.3 MB, free: 1.309 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.0003929/0.1503, allocations: 0.8049 MB / 484.1 MB, free: 488 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.163e-05/0.1504, allocations: 7.938 kB / 484.1 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1504, allocations: 0 / 484.1 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.312e-06/0.1504, allocations: 0 / 484.1 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.1507, allocations: 0.5224 MB / 484.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003452/0.1511, allocations: 187.9 kB / 484.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002075/0.1513, allocations: 0.6692 MB / 485.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.893e-05/0.1513, allocations: 0 / 485.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.444e-05/0.1513, allocations: 11.44 kB / 485.5 MB, free: 15.01 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1513, allocations: 0 / 485.5 MB, free: 15.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01534/0.1667, allocations: 0.8067 MB / 486.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003088/0.167, allocations: 185.8 kB / 486.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.647/1.814, allocations: 0 / 486.5 MB, free: 14.08 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