Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002498/0.002497, allocations: 186.9 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.235/2.235, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 98.84 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3278/0.3278, allocations: 43.56 MB / 362.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005482/0.0005485, allocations: 12 kB / 431.4 MB, free: 20.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.129, allocations: 58.86 MB / 490.2 MB, free: 9.348 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0006795/0.1298, allocations: 216.7 kB / 490.4 MB, free: 9.133 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004091/0.1339, allocations: 1.931 MB / 492.4 MB, free: 7.184 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.468e-05/0.134, allocations: 0 / 492.4 MB, free: 7.184 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.58e-05/0.134, allocations: 4 kB / 492.4 MB, free: 7.18 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 2.082e-05/0.134, allocations: 0 / 492.4 MB, free: 7.18 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001388/0.1354, allocations: 275.2 kB / 492.6 MB, free: 6.91 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 4.61e-05/0.1355, allocations: 11.98 kB / 492.6 MB, free: 6.898 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.985e-05/0.1356, allocations: 0 / 492.6 MB, free: 6.898 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.592e-05/0.1356, allocations: 0 / 492.6 MB, free: 6.898 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00672/0.1423, allocations: 1.85 MB / 494.5 MB, free: 5.047 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.765e-05/0.1424, allocations: 0 / 494.5 MB, free: 5.047 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.1425, allocations: 4 kB / 494.5 MB, free: 5.043 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.045e-05/0.1426, allocations: 0 / 494.5 MB, free: 5.043 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.821e-05/0.1426, allocations: 25.7 kB / 494.5 MB, free: 5.012 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 9.455e-05/0.1427, allocations: 12 kB / 494.5 MB, free: 5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1427, allocations: 0 / 494.5 MB, free: 5 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1428, allocations: 3.938 kB / 494.5 MB, free: 4.996 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.1428, allocations: 0 / 494.5 MB, free: 4.996 MB / 330.7 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.0003906/0.1432, allocations: 315.4 kB / 494.8 MB, free: 4.641 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/0.1433, allocations: 8.031 kB / 494.8 MB, free: 4.633 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000335/0.1436, allocations: 83.27 kB / 494.9 MB, free: 4.551 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002225/0.1439, allocations: 246.3 kB / 495.2 MB, free: 4.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.75e-05/0.144, allocations: 154.5 kB / 495.3 MB, free: 4.117 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.718e-05/0.1441, allocations: 150.6 kB / 495.5 MB, free: 3.969 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.299e-05/0.1442, allocations: 108.9 kB / 495.6 MB, free: 3.855 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.954e-05/0.1443, allocations: 75.28 kB / 495.6 MB, free: 3.781 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.058e-05/0.1444, allocations: 150.6 kB / 495.8 MB, free: 3.633 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.989e-05/0.1445, allocations: 154.6 kB / 495.9 MB, free: 3.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.734e-05/0.1446, allocations: 154.6 kB / 496.1 MB, free: 3.328 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004666/0.1451, allocations: 453.9 kB / 496.5 MB, free: 2.836 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/0.1452, allocations: 169.1 kB / 496.7 MB, free: 2.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5e-05/0.1453, allocations: 79.28 kB / 496.8 MB, free: 2.582 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.545e-05/0.1454, allocations: 109.8 kB / 496.9 MB, free: 2.465 MB / 330.7 MB Notification: Performance of pre-optimization done (n=0): time 3.517e-06/0.1454, allocations: 0 / 496.9 MB, free: 2.465 MB / 330.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001292/0.1456, allocations: 25.7 kB / 496.9 MB, free: 2.434 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001376/0.1457, allocations: 178.1 kB / 497.1 MB, free: 2.234 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.1459, allocations: 101.8 kB / 497.2 MB, free: 2.125 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.1459, allocations: 29.83 kB / 497.2 MB, free: 2.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.717e-05/0.146, allocations: 150.6 kB / 497.4 MB, free: 1.941 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.825e-06/0.146, allocations: 0 / 497.4 MB, free: 1.941 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.31e-07/0.1461, allocations: 0 / 497.4 MB, free: 1.941 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002147/0.1463, allocations: 318.8 kB / 497.7 MB, free: 1.621 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.831e-06/0.1463, allocations: 0 / 497.7 MB, free: 1.621 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.895e-05/0.1464, allocations: 13.72 kB / 497.7 MB, free: 1.602 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.387e-05/0.1465, allocations: 79.33 kB / 497.8 MB, free: 1.523 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.833e-05/0.1465, allocations: 79.31 kB / 497.8 MB, free: 1.445 MB / 330.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 0.0001204/0.1466, allocations: 33.77 kB / 497.9 MB, free: 1.406 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.242e-05/0.1467, allocations: 81.94 kB / 498 MB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.383e-05/0.1468, allocations: 79.22 kB / 498 MB, free: 1.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001108/0.1469, allocations: 158.6 kB / 498.2 MB, free: 1.094 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.6e-05/0.147, allocations: 83.2 kB / 498.3 MB, free: 1.012 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.741e-05/0.1471, allocations: 158.5 kB / 498.4 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001869/0.1473, allocations: 75.28 kB / 498.5 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.152e-05/0.1474, allocations: 83.22 kB / 498.6 MB, free: 0.6992 MB / 330.7 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.0002057/0.1476, allocations: 264.3 kB / 498.8 MB, free: 440 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.1477, allocations: 109 kB / 498.9 MB, free: 324 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.441e-05/0.1478, allocations: 112 kB / 499.1 MB, free: 204 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.504e-05/0.148, allocations: 180.3 kB / 499.2 MB, free: 16 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001313/0.1481, allocations: 180.2 kB / 499.4 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001/0.1482, allocations: 180.3 kB / 499.6 MB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004128/0.1487, allocations: 409.2 kB / 500 MB, free: 15.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.99e-05/0.1488, allocations: 104.9 kB / 0.4884 GB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.4e-05/0.1488, allocations: 105 kB / 0.4885 GB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001087/0.149, allocations: 184.2 kB / 0.4886 GB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.1491, allocations: 184.2 kB / 0.4888 GB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001048/0.1492, allocations: 180.2 kB / 0.489 GB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001051/0.1493, allocations: 184.2 kB / 0.4892 GB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000249/0.1496, allocations: 303.8 kB / 0.4895 GB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.1498, allocations: 190 kB / 0.4896 GB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/0.15, allocations: 180.3 kB / 0.4898 GB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.1502, allocations: 108.9 kB / 0.4899 GB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.1504, allocations: 176.3 kB / 0.4901 GB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.934e-05/0.1506, allocations: 108.9 kB / 0.4902 GB, free: 13.11 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.565e-05/0.1507, allocations: 75.28 kB / 0.4903 GB, free: 13.03 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.1507, allocations: 0 / 0.4903 GB, free: 13.03 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005698/0.1513, allocations: 4 kB / 0.4903 GB, free: 13.03 MB / 346.7 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.0002509/0.1516, allocations: 174.5 kB / 0.4904 GB, free: 12.85 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.573e-05/0.1517, allocations: 4 kB / 0.4904 GB, free: 12.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.1517, allocations: 0 / 0.4904 GB, free: 12.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.909e-06/0.1517, allocations: 4.094 kB / 0.4904 GB, free: 12.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006141/0.1523, allocations: 0.5185 MB / 0.4909 GB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003385/0.1528, allocations: 179.8 kB / 0.4911 GB, free: 12.11 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003881/0.1532, allocations: 0.6731 MB / 0.4918 GB, free: 11.41 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.818e-05/0.1533, allocations: 11.44 kB / 0.4918 GB, free: 11.4 MB / 346.7 MB Notification: Performance of SimCode: time 1.483e-06/0.1533, allocations: 4 kB / 0.4918 GB, free: 11.39 MB / 346.7 MB Notification: Performance of Templates: time 0.002846/0.1561, allocations: 351.8 kB / 0.4921 GB, free: 11.05 MB / 346.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches