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: translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008814/0.0008816, allocations: 97.02 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001043/0.001043, allocations: 200.8 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.7 MB / 247.5 MB, free: 10.95 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1994/0.1994, allocations: 46.18 MB / 345.9 MB, free: 11.33 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002748/0.0002747, allocations: 8 kB / 420.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.113, allocations: 63.57 MB / 483.7 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0006071/0.1137, allocations: 209.3 kB / 483.9 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003093/0.1168, allocations: 2.153 MB / 486.1 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.233e-05/0.1168, allocations: 0 / 486.1 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.484e-05/0.1168, allocations: 3.938 kB / 486.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.615e-05/0.1169, allocations: 4 kB / 486.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.118, allocations: 294.8 kB / 486.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.674e-05/0.118, allocations: 11.98 kB / 486.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.379e-05/0.1181, allocations: 0 / 486.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.559e-05/0.1181, allocations: 4 kB / 486.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03403/0.1521, allocations: 3.192 MB / 489.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.924e-05/0.1521, allocations: 4 kB / 489.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.414e-05/0.1522, allocations: 4 kB / 489.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.041e-05/0.1523, allocations: 7.984 kB / 489.6 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.034e-05/0.1523, allocations: 25.7 kB / 489.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 7.249e-05/0.1524, allocations: 7.984 kB / 489.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1524, allocations: 0 / 489.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1524, allocations: 0 / 489.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1524, allocations: 0 / 489.6 MB, free: 14.72 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.0002744/0.1527, allocations: 319.6 kB / 489.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.1527, allocations: 8.875 kB / 490 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002073/0.1529, allocations: 88.2 kB / 490 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.1531, allocations: 239.7 kB / 490.3 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.887e-05/0.1531, allocations: 150.9 kB / 490.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.431e-05/0.1532, allocations: 154.7 kB / 490.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.279e-05/0.1533, allocations: 105 kB / 490.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.92e-05/0.1533, allocations: 75.28 kB / 490.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.452e-05/0.1534, allocations: 154.5 kB / 490.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.121e-05/0.1535, allocations: 150.6 kB / 491 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.704e-05/0.1535, allocations: 158.5 kB / 491.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002774/0.1538, allocations: 446 kB / 491.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.336e-05/0.1539, allocations: 165.1 kB / 491.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.634e-05/0.1539, allocations: 88.02 kB / 491.9 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.154, allocations: 79.28 kB / 492 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.469e-05/0.154, allocations: 117.8 kB / 492.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.042e-06/0.154, allocations: 0 / 492.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.219e-05/0.1541, allocations: 25.7 kB / 492.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.501e-05/0.1542, allocations: 182.1 kB / 492.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.903e-05/0.1543, allocations: 93.86 kB / 492.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.1543, allocations: 25.7 kB / 492.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.825e-05/0.1544, allocations: 80.14 kB / 492.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.234e-06/0.1544, allocations: 0 / 492.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.008e-05/0.1544, allocations: 13.84 kB / 492.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.1545, allocations: 314.8 kB / 492.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.679e-06/0.1545, allocations: 0 / 492.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.562e-05/0.1546, allocations: 17.66 kB / 492.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.596e-05/0.1546, allocations: 79.22 kB / 492.9 MB, free: 11.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.062e-05/0.1546, allocations: 75.28 kB / 493 MB, free: 11.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.76e-05/0.1547, allocations: 41.67 kB / 493 MB, free: 11.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/0.1548, allocations: 79.28 kB / 493.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.521e-05/0.1548, allocations: 83.25 kB / 493.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.857e-05/0.1548, allocations: 154.6 kB / 493.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.096e-05/0.1549, allocations: 75.28 kB / 493.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.864e-05/0.1549, allocations: 158.5 kB / 493.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.853e-05/0.155, allocations: 75.28 kB / 493.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.1551, allocations: 83.22 kB / 493.7 MB, free: 10.4 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.0001155/0.1552, allocations: 264.4 kB / 494 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.027e-05/0.1552, allocations: 108.9 kB / 494.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.785e-05/0.1553, allocations: 108.1 kB / 494.2 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.331e-05/0.1554, allocations: 180.2 kB / 494.3 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.373e-05/0.1554, allocations: 176.3 kB / 494.5 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.814e-05/0.1555, allocations: 192.2 kB / 494.7 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.1557, allocations: 397.2 kB / 495.1 MB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.869e-05/0.1558, allocations: 105 kB / 495.2 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.396e-05/0.1558, allocations: 108.9 kB / 495.3 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-05/0.1559, allocations: 180.2 kB / 495.5 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.722e-05/0.156, allocations: 184.2 kB / 495.7 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.753e-05/0.156, allocations: 180.3 kB / 495.8 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.53e-05/0.1561, allocations: 180.3 kB / 496 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001433/0.1562, allocations: 312 kB / 496.3 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.582e-05/0.1563, allocations: 190 kB / 496.5 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.72e-05/0.1564, allocations: 180.3 kB / 496.7 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.86e-05/0.1565, allocations: 113 kB / 496.8 MB, free: 7.102 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.814e-05/0.1566, allocations: 188.2 kB / 497 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.278e-05/0.1566, allocations: 101 kB / 497.1 MB, free: 6.805 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.167e-05/0.1567, allocations: 75.28 kB / 497.1 MB, free: 6.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1567, allocations: 96 / 497.1 MB, free: 6.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002603/0.157, allocations: 8 kB / 497.1 MB, free: 6.723 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.0001277/0.1571, allocations: 166.5 kB / 497.3 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.075e-05/0.1571, allocations: 3.938 kB / 497.3 MB, free: 6.543 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1571, allocations: 0 / 497.3 MB, free: 6.543 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.493e-06/0.1572, allocations: 0 / 497.3 MB, free: 6.543 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004023/0.1576, allocations: 0.5302 MB / 497.8 MB, free: 6.008 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002186/0.1578, allocations: 175.9 kB / 498 MB, free: 5.801 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.158, allocations: 0.6692 MB / 498.7 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.037e-06/0.158, allocations: 11.38 kB / 498.7 MB, free: 5.098 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1581, allocations: 0 / 498.7 MB, free: 5.098 MB / 366.1 MB Notification: Performance of Templates: time 0.001506/0.1596, allocations: 359.2 kB / 499 MB, free: 4.75 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches