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.001276/0.001276, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001327/0.001327, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2241/0.2241, allocations: 46.11 MB / 344.2 MB, free: 11.54 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.002254/0.002254, allocations: 80.55 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1066, allocations: 62.45 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001874/0.1085, allocations: 487.7 kB / 480.7 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003133/0.1117, allocations: 2.131 MB / 482.8 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.495e-05/0.1117, allocations: 0 / 482.8 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.267e-05/0.1117, allocations: 0 / 482.8 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.153e-05/0.1118, allocations: 0 / 482.8 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001116/0.1129, allocations: 410.7 kB / 483.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.183e-05/0.1129, allocations: 4 kB / 483.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.701e-05/0.113, allocations: 0 / 483.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.919e-05/0.113, allocations: 4 kB / 483.2 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01996/0.133, allocations: 3.342 MB / 486.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.346e-05/0.133, allocations: 0 / 486.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.642e-05/0.1331, allocations: 4 kB / 486.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.178e-06/0.1331, allocations: 4 kB / 486.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.963e-05/0.1331, allocations: 0 / 486.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.1332, allocations: 19.91 kB / 486.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1333, allocations: 0 / 486.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1333, allocations: 0 / 486.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1333, allocations: 0 / 486.6 MB, free: 15.34 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.0002929/0.1336, allocations: 311.5 kB / 486.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.1336, allocations: 16.03 kB / 486.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.9e-05/0.1337, allocations: 106 kB / 487 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001942/0.1339, allocations: 92.2 kB / 487.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.134, allocations: 239.6 kB / 487.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.083e-05/0.1341, allocations: 150.9 kB / 487.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.409e-05/0.1342, allocations: 158.5 kB / 487.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.485e-05/0.1342, allocations: 105 kB / 487.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.411e-05/0.1343, allocations: 75.28 kB / 487.8 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.314e-05/0.1343, allocations: 150.6 kB / 488 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.897e-05/0.1344, allocations: 154.5 kB / 488.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.551e-05/0.1345, allocations: 162.5 kB / 488.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002912/0.1348, allocations: 442 kB / 488.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.906e-05/0.1349, allocations: 169.1 kB / 488.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.073e-05/0.1349, allocations: 80.14 kB / 488.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.29e-05/0.135, allocations: 79.28 kB / 489 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.937e-05/0.135, allocations: 117.8 kB / 489.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 8.41e-07/0.135, allocations: 0 / 489.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.253e-05/0.1351, allocations: 29.64 kB / 489.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.979e-05/0.1352, allocations: 178.1 kB / 489.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.009e-05/0.1353, allocations: 93.86 kB / 489.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.1353, allocations: 25.7 kB / 489.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.437e-05/0.1354, allocations: 80.14 kB / 489.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.493e-06/0.1354, allocations: 0 / 489.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.074e-05/0.1354, allocations: 21.84 kB / 489.6 MB, free: 12.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1355, allocations: 310.8 kB / 489.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.747e-06/0.1355, allocations: 0 / 489.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.804e-05/0.1356, allocations: 13.7 kB / 489.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.024e-05/0.1356, allocations: 79.28 kB / 489.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.739e-05/0.1356, allocations: 75.28 kB / 490 MB, free: 11.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.221e-05/0.1357, allocations: 33.58 kB / 490.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.826e-05/0.1358, allocations: 87.31 kB / 490.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.197e-05/0.1358, allocations: 75.28 kB / 490.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.002e-05/0.1359, allocations: 158.5 kB / 490.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.876e-05/0.1359, allocations: 75.28 kB / 490.4 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.448e-05/0.136, allocations: 166.6 kB / 490.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.829e-05/0.1361, allocations: 79.22 kB / 490.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.14e-05/0.1361, allocations: 79.28 kB / 490.8 MB, free: 10.9 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.0001278/0.1362, allocations: 264.3 kB / 491 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.698e-05/0.1363, allocations: 108.9 kB / 491.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.03e-05/0.1364, allocations: 108.1 kB / 491.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.008e-05/0.1364, allocations: 184.2 kB / 491.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.432e-05/0.1365, allocations: 188.1 kB / 491.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.956e-05/0.1366, allocations: 176.3 kB / 491.8 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002705/0.1369, allocations: 413.1 kB / 492.2 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.275e-05/0.1369, allocations: 101 kB / 492.3 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.375e-05/0.137, allocations: 104.9 kB / 492.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.99e-05/0.1371, allocations: 180.5 kB / 492.5 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-05/0.1371, allocations: 184.3 kB / 492.7 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.458e-05/0.1372, allocations: 180.2 kB / 492.9 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.794e-05/0.1373, allocations: 188.3 kB / 493.1 MB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001534/0.1375, allocations: 303.7 kB / 493.4 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.355e-05/0.1375, allocations: 186.1 kB / 493.6 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.539e-05/0.1377, allocations: 192.2 kB / 493.8 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.077e-05/0.1377, allocations: 101 kB / 493.9 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.01e-05/0.1378, allocations: 184.2 kB / 494 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.231e-05/0.1379, allocations: 101 kB / 494.1 MB, free: 7.305 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.115e-05/0.1379, allocations: 79.28 kB / 494.2 MB, free: 7.227 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1379, allocations: 0 / 494.2 MB, free: 7.227 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002731/0.1382, allocations: 4 kB / 494.2 MB, free: 7.223 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.0004147/0.1386, allocations: 0.8047 MB / 495 MB, free: 6.387 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.538e-05/0.1387, allocations: 0 / 495 MB, free: 6.387 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1387, allocations: 4.094 kB / 495 MB, free: 6.383 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.292e-06/0.1387, allocations: 0 / 495 MB, free: 6.383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.1391, allocations: 465.9 kB / 495.5 MB, free: 5.926 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003747/0.1395, allocations: 181.8 kB / 495.7 MB, free: 5.707 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.1398, allocations: 0.6729 MB / 496.3 MB, free: 5.008 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.852e-05/0.1398, allocations: 4 kB / 496.3 MB, free: 5.004 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.024e-05/0.1398, allocations: 7.438 kB / 496.3 MB, free: 5 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1398, allocations: 0 / 496.3 MB, free: 5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02179/0.1616, allocations: 1.004 MB / 497.3 MB, free: 4.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.877/8.039, allocations: 1.078 kB / 497.3 MB, free: 4.07 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1)