Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001193/0.001193, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001314/0.001314, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2213/0.2213, allocations: 46.11 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003462/0.003463, allocations: 85.03 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1265, allocations: 62.44 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001734/0.1282, allocations: 491.7 kB / 480.7 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003233/0.1315, allocations: 2.135 MB / 482.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.814e-05/0.1315, allocations: 0 / 482.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.742e-05/0.1316, allocations: 4 kB / 482.8 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.779e-05/0.1316, allocations: 0 / 482.8 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.1328, allocations: 406.1 kB / 483.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.342e-05/0.1328, allocations: 4 kB / 483.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.815e-05/0.1329, allocations: 4 kB / 483.2 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.319e-05/0.1329, allocations: 0 / 483.2 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02008/0.153, allocations: 3.341 MB / 486.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.578e-05/0.153, allocations: 0 / 486.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.742e-05/0.1531, allocations: 4 kB / 486.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.026e-05/0.1531, allocations: 0 / 486.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.262e-05/0.1532, allocations: 0 / 486.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.1533, allocations: 19.91 kB / 486.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1533, allocations: 0 / 486.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1533, allocations: 0 / 486.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1533, allocations: 8 kB / 486.6 MB, free: 15.36 MB / 366.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.0003313/0.1537, allocations: 307.6 kB / 486.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.1537, allocations: 8.031 kB / 486.9 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.597e-05/0.1538, allocations: 114 kB / 487 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.154, allocations: 88.22 kB / 487.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.1542, allocations: 239.7 kB / 487.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.057e-05/0.1543, allocations: 154.9 kB / 487.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.308e-05/0.1544, allocations: 154.5 kB / 487.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.182e-05/0.1544, allocations: 104.9 kB / 487.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.626e-05/0.1545, allocations: 75.28 kB / 487.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.687e-05/0.1546, allocations: 154.6 kB / 488 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.607e-05/0.1546, allocations: 150.6 kB / 488.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.791e-05/0.1547, allocations: 158.5 kB / 488.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003179/0.155, allocations: 442 kB / 488.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001003/0.1551, allocations: 173.1 kB / 488.9 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.578e-05/0.1552, allocations: 80.14 kB / 488.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.176e-05/0.1552, allocations: 87.25 kB / 489 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.955e-05/0.1553, allocations: 113.8 kB / 489.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 9.12e-07/0.1553, allocations: 0 / 489.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.536e-05/0.1554, allocations: 25.7 kB / 489.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.1555, allocations: 186 kB / 489.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.89e-05/0.1556, allocations: 89.86 kB / 489.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.1556, allocations: 29.83 kB / 489.5 MB, free: 12.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.862e-05/0.1557, allocations: 80.14 kB / 489.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.683e-06/0.1557, allocations: 0 / 489.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-05/0.1557, allocations: 17.72 kB / 489.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.1559, allocations: 314.8 kB / 489.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.579e-06/0.1559, allocations: 0 / 489.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.858e-05/0.1559, allocations: 13.72 kB / 489.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.359e-05/0.156, allocations: 79.31 kB / 490 MB, free: 11.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.074e-05/0.156, allocations: 79.22 kB / 490 MB, free: 11.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.21e-05/0.1561, allocations: 33.64 kB / 490.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.323e-05/0.1561, allocations: 82.56 kB / 490.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.288e-05/0.1561, allocations: 75.28 kB / 490.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.135e-05/0.1562, allocations: 158.5 kB / 490.4 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.146e-05/0.1563, allocations: 75.28 kB / 490.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-05/0.1563, allocations: 170.5 kB / 490.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.89e-05/0.1564, allocations: 75.28 kB / 490.7 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.1565, allocations: 79.28 kB / 490.8 MB, free: 10.92 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001346/0.1566, allocations: 260.3 kB / 491 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.138e-05/0.1567, allocations: 108.9 kB / 491.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.58e-05/0.1567, allocations: 112.1 kB / 491.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.503e-05/0.1568, allocations: 184.2 kB / 491.4 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.842e-05/0.1569, allocations: 180.3 kB / 491.6 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.429e-05/0.157, allocations: 184.2 kB / 491.8 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002587/0.1572, allocations: 409.1 kB / 492.2 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-05/0.1573, allocations: 101 kB / 492.3 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.339e-05/0.1573, allocations: 108.9 kB / 492.4 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.812e-05/0.1574, allocations: 180.6 kB / 492.5 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.497e-05/0.1575, allocations: 176.3 kB / 492.7 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.838e-05/0.1576, allocations: 184.2 kB / 492.9 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.543e-05/0.1577, allocations: 180.3 kB / 493.1 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001615/0.1578, allocations: 311.7 kB / 493.4 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.164e-05/0.1579, allocations: 190.1 kB / 493.6 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.774e-05/0.158, allocations: 180.2 kB / 493.7 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.1581, allocations: 109 kB / 493.8 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.435e-05/0.1582, allocations: 180.2 kB / 494 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.049e-05/0.1583, allocations: 105 kB / 494.1 MB, free: 7.328 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.198e-05/0.1583, allocations: 75.28 kB / 494.2 MB, free: 7.254 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1583, allocations: 0 / 494.2 MB, free: 7.254 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000289/0.1586, allocations: 4 kB / 494.2 MB, free: 7.25 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004456/0.1591, allocations: 0.8126 MB / 495 MB, free: 6.406 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.038e-05/0.1591, allocations: 0 / 495 MB, free: 6.406 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1591, allocations: 0 / 495 MB, free: 6.406 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.623e-06/0.1591, allocations: 0 / 495 MB, free: 6.406 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003797/0.1595, allocations: 461.9 kB / 495.5 MB, free: 5.953 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003934/0.1599, allocations: 189.8 kB / 495.7 MB, free: 5.727 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.1602, allocations: 0.6728 MB / 496.3 MB, free: 5.027 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.777e-05/0.1603, allocations: 0 / 496.3 MB, free: 5.027 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.225e-05/0.1603, allocations: 7.438 kB / 496.3 MB, free: 5.023 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1603, allocations: 0 / 496.3 MB, free: 5.023 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02179/0.1821, allocations: 0.9993 MB / 497.3 MB, free: 4.098 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.411/8.593, allocations: 7.938 kB / 497.3 MB, free: 4.094 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1)