Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009397/0.0009398, allocations: 194.4 kB / 16.78 MB, free: 5.012 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.5 MB / 244.1 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008375/0.0008374, allocations: 96.42 kB / 296.1 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3553/0.3553, allocations: 44.83 MB / 393 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002568/0.0002569, allocations: 7.984 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3028, allocations: 62.96 MB / 0.5165 GB, free: 37.33 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1131/0.416, allocations: 89.51 MB / 0.6039 GB, free: 15.89 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001715/0.4162, allocations: 67.97 kB / 0.6039 GB, free: 15.83 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01741/0.4336, allocations: 6.474 MB / 0.6103 GB, free: 9.348 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4337, allocations: 0 / 0.6103 GB, free: 9.348 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.4337, allocations: 0 / 0.6103 GB, free: 9.348 MB / 426.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.0004654/0.4341, allocations: 439.2 kB / 0.6107 GB, free: 8.867 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.4342, allocations: 11.97 kB / 0.6107 GB, free: 8.855 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001802/0.4344, allocations: 88.2 kB / 0.6108 GB, free: 8.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.4345, allocations: 235.7 kB / 0.611 GB, free: 8.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.478e-05/0.4346, allocations: 154.9 kB / 0.6111 GB, free: 8.348 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.006e-05/0.4347, allocations: 158.9 kB / 0.6113 GB, free: 8.191 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.397e-05/0.4347, allocations: 101.5 kB / 0.6114 GB, free: 8.086 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.617e-05/0.4347, allocations: 79.45 kB / 0.6115 GB, free: 8.008 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.22e-05/0.4348, allocations: 154.5 kB / 0.6116 GB, free: 7.855 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.919e-05/0.4349, allocations: 150.6 kB / 0.6118 GB, free: 7.707 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.995e-05/0.435, allocations: 154.5 kB / 0.6119 GB, free: 7.555 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002669/0.4352, allocations: 450 kB / 0.6123 GB, free: 7.066 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.276e-05/0.4353, allocations: 165.1 kB / 0.6125 GB, free: 6.895 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.049e-05/0.4354, allocations: 80.14 kB / 0.6126 GB, free: 6.812 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.567e-05/0.4354, allocations: 75.28 kB / 0.6126 GB, free: 6.738 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.986e-05/0.4355, allocations: 109.8 kB / 0.6127 GB, free: 6.621 MB / 426.7 MB Notification: Performance of pre-optimization done (n=0): time 3.487e-06/0.4355, allocations: 0 / 0.6127 GB, free: 6.621 MB / 426.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001023/0.4356, allocations: 45.56 kB / 0.6128 GB, free: 6.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.4357, allocations: 178.1 kB / 0.613 GB, free: 6.371 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.4358, allocations: 89.86 kB / 0.613 GB, free: 6.273 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.4358, allocations: 29.7 kB / 0.6131 GB, free: 6.238 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.1e-05/0.4359, allocations: 80.27 kB / 0.6132 GB, free: 6.156 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.743e-06/0.4359, allocations: 4 kB / 0.6132 GB, free: 6.152 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.11e-07/0.4359, allocations: 0 / 0.6132 GB, free: 6.152 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.436, allocations: 310.8 kB / 0.6135 GB, free: 5.84 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.216e-06/0.436, allocations: 0 / 0.6135 GB, free: 5.84 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.821e-05/0.436, allocations: 17.72 kB / 0.6135 GB, free: 5.816 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.002e-05/0.4361, allocations: 75.28 kB / 0.6135 GB, free: 5.742 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-05/0.4361, allocations: 75.28 kB / 0.6136 GB, free: 5.668 MB / 426.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.43e-05/0.4362, allocations: 45.66 kB / 0.6137 GB, free: 5.617 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/0.4362, allocations: 79.28 kB / 0.6137 GB, free: 5.539 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/0.4362, allocations: 79.22 kB / 0.6138 GB, free: 5.461 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.744e-05/0.4363, allocations: 154.5 kB / 0.614 GB, free: 5.309 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.987e-05/0.4363, allocations: 79.45 kB / 0.614 GB, free: 5.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-05/0.4364, allocations: 158.5 kB / 0.6142 GB, free: 5.074 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.4366, allocations: 91.2 kB / 0.6143 GB, free: 4.984 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.653e-05/0.4366, allocations: 83.22 kB / 0.6143 GB, free: 4.902 MB / 426.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.0001458/0.4368, allocations: 256.4 kB / 0.6146 GB, free: 4.641 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.285e-05/0.4369, allocations: 108.9 kB / 0.6147 GB, free: 4.527 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.683e-05/0.4369, allocations: 108 kB / 0.6148 GB, free: 4.414 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.676e-05/0.437, allocations: 176.3 kB / 0.615 GB, free: 4.234 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.731e-05/0.4371, allocations: 196.2 kB / 0.6152 GB, free: 4.035 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.777e-05/0.4371, allocations: 176.3 kB / 0.6153 GB, free: 3.855 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001972/0.4373, allocations: 397.2 kB / 0.6157 GB, free: 3.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.805e-05/0.4374, allocations: 106.3 kB / 0.6158 GB, free: 3.301 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.339e-05/0.4374, allocations: 108.9 kB / 0.6159 GB, free: 3.188 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.999e-05/0.4375, allocations: 184.3 kB / 0.6161 GB, free: 3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.842e-05/0.4376, allocations: 180.2 kB / 0.6163 GB, free: 2.816 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.465e-05/0.4376, allocations: 180.2 kB / 0.6164 GB, free: 2.633 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.655e-05/0.4377, allocations: 180.3 kB / 0.6166 GB, free: 2.449 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001326/0.4378, allocations: 315.8 kB / 0.6169 GB, free: 2.117 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.159e-05/0.4379, allocations: 178.1 kB / 0.6171 GB, free: 1.918 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.77e-05/0.438, allocations: 188.1 kB / 0.6172 GB, free: 1.727 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.879e-05/0.4381, allocations: 105.4 kB / 0.6173 GB, free: 1.617 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.281e-05/0.4381, allocations: 180.2 kB / 0.6175 GB, free: 1.434 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.209e-05/0.4382, allocations: 109 kB / 0.6176 GB, free: 1.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.124e-05/0.4382, allocations: 79.28 kB / 0.6177 GB, free: 1.242 MB / 426.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4382, allocations: 0 / 0.6177 GB, free: 1.242 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000622/0.4388, allocations: 171.8 kB / 0.6179 GB, free: 1.074 MB / 426.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.0009697/0.4398, allocations: 0.554 MB / 0.6184 GB, free: 0.5664 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 4.845e-05/0.4399, allocations: 3.984 kB / 0.6184 GB, free: 0.5625 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4399, allocations: 0 / 0.6184 GB, free: 0.5625 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.106e-06/0.4399, allocations: 7.938 kB / 0.6184 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003676/0.4403, allocations: 0.5185 MB / 0.6189 GB, free: 32 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002029/0.4405, allocations: 175.7 kB / 0.6191 GB, free: 15.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002391/0.4407, allocations: 0.6692 MB / 0.6197 GB, free: 15.13 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.582e-05/0.4407, allocations: 11.44 kB / 0.6198 GB, free: 15.12 MB / 442.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4408, allocations: 4 kB / 0.6198 GB, free: 15.11 MB / 442.7 MB Notification: Performance of Templates: time 0.005413/0.4462, allocations: 3.015 MB / 0.6227 GB, free: 12.1 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches