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.001071/0.001072, allocations: 201 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 226.6 MB / 243.1 MB, free: 12.36 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007509/0.000751, allocations: 89.77 kB / 295.1 MB, free: 4.438 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1795/0.1795, allocations: 44.84 MB / 392 MB, free: 11.33 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002316/0.0002317, allocations: 4 kB / 464.7 MB, free: 68.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07846/0.0787, allocations: 62.96 MB / 0.5153 GB, free: 5.105 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0004093/0.07915, allocations: 208.6 kB / 0.5155 GB, free: 4.898 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.0809, allocations: 2.003 MB / 0.5175 GB, free: 2.879 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.415e-05/0.08093, allocations: 3.938 kB / 0.5175 GB, free: 2.875 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.039e-05/0.08095, allocations: 0 / 0.5175 GB, free: 2.875 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.328e-05/0.08097, allocations: 0 / 0.5175 GB, free: 2.875 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006063/0.08158, allocations: 311.3 kB / 0.5178 GB, free: 2.57 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.474e-05/0.08161, allocations: 0 / 0.5178 GB, free: 2.57 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.623e-05/0.08166, allocations: 0 / 0.5178 GB, free: 2.57 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.243e-05/0.08167, allocations: 4 kB / 0.5178 GB, free: 2.566 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002378/0.08406, allocations: 2.42 MB / 0.5201 GB, free: 148 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.915e-06/0.08408, allocations: 0 / 0.5201 GB, free: 148 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.856e-05/0.08413, allocations: 8 kB / 0.5201 GB, free: 140 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.769e-06/0.08414, allocations: 3.938 kB / 0.5201 GB, free: 136 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.423e-05/0.08416, allocations: 29.7 kB / 0.5202 GB, free: 100 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 4.371e-05/0.08421, allocations: 7.984 kB / 0.5202 GB, free: 92 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.08422, allocations: 0 / 0.5202 GB, free: 92 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.08423, allocations: 0 / 0.5202 GB, free: 92 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.08424, allocations: 0 / 0.5202 GB, free: 92 kB / 346.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.0002173/0.08446, allocations: 311.4 kB / 0.5205 GB, free: 15.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.831e-05/0.0845, allocations: 8.031 kB / 0.5205 GB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001614/0.08466, allocations: 91.27 kB / 0.5206 GB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.08479, allocations: 238.4 kB / 0.5208 GB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.556e-05/0.08484, allocations: 150.6 kB / 0.5209 GB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.775e-05/0.08489, allocations: 150.6 kB / 0.5211 GB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.798e-05/0.08494, allocations: 101 kB / 0.5212 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.08497, allocations: 79.28 kB / 0.5213 GB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.312e-05/0.08503, allocations: 154.5 kB / 0.5214 GB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-05/0.08509, allocations: 158.5 kB / 0.5216 GB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.312e-05/0.08514, allocations: 154.6 kB / 0.5217 GB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000246/0.08539, allocations: 445.9 kB / 0.5221 GB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.949e-05/0.08546, allocations: 169.1 kB / 0.5223 GB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.604e-05/0.0855, allocations: 84.14 kB / 0.5224 GB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.08554, allocations: 83.22 kB / 0.5225 GB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/0.08558, allocations: 109.8 kB / 0.5226 GB, free: 13.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 8.71e-07/0.08558, allocations: 0 / 0.5226 GB, free: 13.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 5.932e-05/0.08565, allocations: 29.7 kB / 0.5226 GB, free: 13.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.551e-05/0.08573, allocations: 186 kB / 0.5228 GB, free: 13.24 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.736e-05/0.08582, allocations: 93.86 kB / 0.5229 GB, free: 13.14 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.08583, allocations: 25.7 kB / 0.5229 GB, free: 13.11 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.678e-05/0.08587, allocations: 80.14 kB / 0.523 GB, free: 13.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.333e-06/0.08587, allocations: 0 / 0.523 GB, free: 13.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.3e-07/0.08588, allocations: 4 kB / 0.523 GB, free: 13.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.195e-05/0.08598, allocations: 314.8 kB / 0.5233 GB, free: 12.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.635e-06/0.08598, allocations: 3.938 kB / 0.5233 GB, free: 12.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.789e-05/0.08602, allocations: 21.72 kB / 0.5233 GB, free: 12.67 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.878e-05/0.08605, allocations: 79.28 kB / 0.5234 GB, free: 12.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-05/0.08608, allocations: 75.28 kB / 0.5234 GB, free: 12.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.465e-05/0.08613, allocations: 25.7 kB / 0.5235 GB, free: 12.49 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/0.08617, allocations: 87.27 kB / 0.5235 GB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-05/0.0862, allocations: 79.22 kB / 0.5236 GB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.244e-05/0.08626, allocations: 154.5 kB / 0.5238 GB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.983e-05/0.08628, allocations: 79.31 kB / 0.5238 GB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.145e-05/0.08634, allocations: 162.5 kB / 0.524 GB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.607e-05/0.08642, allocations: 79.23 kB / 0.5241 GB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.04e-05/0.08645, allocations: 79.22 kB / 0.5241 GB, free: 11.78 MB / 362.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.0001022/0.08656, allocations: 264.4 kB / 0.5244 GB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.523e-05/0.08662, allocations: 105 kB / 0.5245 GB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.361e-05/0.08666, allocations: 108.1 kB / 0.5246 GB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.405e-05/0.08672, allocations: 184.2 kB / 0.5248 GB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-05/0.08678, allocations: 180.3 kB / 0.5249 GB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.566e-05/0.08684, allocations: 184.2 kB / 0.5251 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001885/0.08703, allocations: 401.2 kB / 0.5255 GB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-05/0.08707, allocations: 109 kB / 0.5256 GB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.898e-05/0.08711, allocations: 104.9 kB / 0.5257 GB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.364e-05/0.08717, allocations: 180.2 kB / 0.5259 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-05/0.08723, allocations: 184.2 kB / 0.5261 GB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.415e-05/0.08729, allocations: 176.3 kB / 0.5262 GB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-05/0.08734, allocations: 184.2 kB / 0.5264 GB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001206/0.08747, allocations: 308.1 kB / 0.5267 GB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.781e-05/0.08754, allocations: 182 kB / 0.5269 GB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.886e-05/0.08761, allocations: 180.3 kB / 0.527 GB, free: 8.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.44e-05/0.0877, allocations: 109 kB / 0.5271 GB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.61e-05/0.08777, allocations: 188.2 kB / 0.5273 GB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.783e-05/0.08781, allocations: 105 kB / 0.5274 GB, free: 8.195 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.727e-05/0.08784, allocations: 75.28 kB / 0.5275 GB, free: 8.121 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08784, allocations: 0 / 0.5275 GB, free: 8.121 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002408/0.08809, allocations: 0 / 0.5275 GB, free: 8.121 MB / 362.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.0001025/0.0882, allocations: 170.5 kB / 0.5277 GB, free: 7.945 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 5.036e-05/0.08825, allocations: 12.03 kB / 0.5277 GB, free: 7.934 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.08826, allocations: 3.938 kB / 0.5277 GB, free: 7.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.253e-06/0.08827, allocations: 0 / 0.5277 GB, free: 7.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003315/0.0886, allocations: 0.5263 MB / 0.5282 GB, free: 7.398 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000154/0.08876, allocations: 172 kB / 0.5284 GB, free: 7.195 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002013/0.08898, allocations: 0.6809 MB / 0.529 GB, free: 6.488 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.074e-06/0.08899, allocations: 7.438 kB / 0.529 GB, free: 6.48 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.089, allocations: 0 / 0.529 GB, free: 6.48 MB / 362.7 MB Notification: Performance of Templates: time 0.001142/0.09014, allocations: 359.3 kB / 0.5294 GB, free: 6.133 MB / 362.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/jenkins/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