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.001267/0.001267, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 226.5 MB / 243.4 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008401/0.0008402, allocations: 97.48 kB / 295.5 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3289/0.3289, allocations: 44.82 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002689/0.0002689, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3371, allocations: 62.95 MB / 0.5159 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0005435/0.3377, allocations: 208.1 kB / 0.5161 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002021/0.3397, allocations: 2.019 MB / 0.518 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.844e-05/0.3398, allocations: 0 / 0.518 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.064e-05/0.3398, allocations: 0 / 0.518 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.329e-05/0.3398, allocations: 0 / 0.518 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007487/0.3406, allocations: 296 kB / 0.5183 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.995e-05/0.3406, allocations: 0 / 0.5183 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.85e-05/0.3407, allocations: 9.938 kB / 0.5183 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.458e-05/0.3407, allocations: 7.938 kB / 0.5183 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01244/0.3531, allocations: 2.76 MB / 0.521 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.411e-05/0.3532, allocations: 0 / 0.521 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.247e-05/0.3533, allocations: 6.578 kB / 0.521 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.02e-05/0.3533, allocations: 10.41 kB / 0.521 GB, free: 34.9 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.854e-05/0.3533, allocations: 25.7 kB / 0.5211 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.267e-05/0.3534, allocations: 5.875 kB / 0.5211 GB, free: 34.87 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3534, allocations: 0 / 0.5211 GB, free: 34.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3534, allocations: 0 / 0.5211 GB, free: 34.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.3534, allocations: 2.781 kB / 0.5211 GB, free: 34.87 MB / 378.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.0002046/0.3536, allocations: 314.4 kB / 0.5214 GB, free: 34.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.3537, allocations: 8.188 kB / 0.5214 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.3538, allocations: 84.75 kB / 0.5215 GB, free: 34.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.02e-05/0.3539, allocations: 242.9 kB / 0.5217 GB, free: 34.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.354, allocations: 153.5 kB / 0.5218 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.42e-05/0.354, allocations: 158.7 kB / 0.522 GB, free: 33.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.195e-05/0.354, allocations: 104.9 kB / 0.5221 GB, free: 33.76 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.3541, allocations: 75.28 kB / 0.5222 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.039e-05/0.3541, allocations: 153.3 kB / 0.5223 GB, free: 33.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.3541, allocations: 150.6 kB / 0.5225 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.65e-05/0.3542, allocations: 150.6 kB / 0.5226 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001666/0.3543, allocations: 449.2 kB / 0.523 GB, free: 32.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.44e-05/0.3544, allocations: 171.8 kB / 0.5232 GB, free: 32.58 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.739e-05/0.3544, allocations: 84.08 kB / 0.5233 GB, free: 32.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.439e-05/0.3544, allocations: 75.28 kB / 0.5233 GB, free: 32.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.3545, allocations: 116.7 kB / 0.5235 GB, free: 32.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 8.72e-07/0.3545, allocations: 0 / 0.5235 GB, free: 32.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 6.077e-05/0.3545, allocations: 25.7 kB / 0.5235 GB, free: 32.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.3546, allocations: 182 kB / 0.5237 GB, free: 32.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.882e-05/0.3547, allocations: 100.1 kB / 0.5238 GB, free: 31.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.013e-06/0.3547, allocations: 25.7 kB / 0.5238 GB, free: 31.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.398e-05/0.3547, allocations: 80.14 kB / 0.5239 GB, free: 31.85 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.233e-06/0.3547, allocations: 4.125 kB / 0.5239 GB, free: 31.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.2e-07/0.3547, allocations: 2.5 kB / 0.5239 GB, free: 31.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.452e-05/0.3548, allocations: 310.8 kB / 0.5242 GB, free: 31.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.867e-06/0.3548, allocations: 0 / 0.5242 GB, free: 31.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.084e-05/0.3548, allocations: 16.5 kB / 0.5242 GB, free: 31.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.429e-05/0.3548, allocations: 75.28 kB / 0.5242 GB, free: 31.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.3548, allocations: 79.22 kB / 0.5243 GB, free: 31.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.586e-05/0.3549, allocations: 36.47 kB / 0.5244 GB, free: 31.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.3549, allocations: 84.81 kB / 0.5244 GB, free: 31.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.3549, allocations: 86.64 kB / 0.5245 GB, free: 31.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.292e-05/0.355, allocations: 153.3 kB / 0.5247 GB, free: 31.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-05/0.355, allocations: 79.22 kB / 0.5247 GB, free: 30.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.951e-05/0.355, allocations: 150.6 kB / 0.5249 GB, free: 30.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.526e-05/0.3551, allocations: 77.94 kB / 0.525 GB, free: 30.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.3551, allocations: 87.22 kB / 0.525 GB, free: 30.62 MB / 378.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 6.813e-05/0.3552, allocations: 262.8 kB / 0.5253 GB, free: 30.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.631e-05/0.3552, allocations: 107.5 kB / 0.5254 GB, free: 30.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.256e-05/0.3552, allocations: 108 kB / 0.5255 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.388e-05/0.3553, allocations: 176.3 kB / 0.5257 GB, free: 29.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.932e-05/0.3553, allocations: 194.5 kB / 0.5258 GB, free: 29.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.668e-05/0.3553, allocations: 180.2 kB / 0.526 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/0.3555, allocations: 399.9 kB / 0.5264 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.769e-05/0.3555, allocations: 108.8 kB / 0.5265 GB, free: 29.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.441e-05/0.3555, allocations: 101 kB / 0.5266 GB, free: 28.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.65e-05/0.3555, allocations: 183.2 kB / 0.5268 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.622e-05/0.3556, allocations: 184.2 kB / 0.527 GB, free: 28.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.432e-05/0.3556, allocations: 176.3 kB / 0.5271 GB, free: 28.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-05/0.3556, allocations: 190.8 kB / 0.5273 GB, free: 28.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.935e-05/0.3557, allocations: 306.2 kB / 0.5276 GB, free: 27.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.923e-05/0.3557, allocations: 184.8 kB / 0.5278 GB, free: 27.67 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.355e-05/0.3558, allocations: 179.6 kB / 0.5279 GB, free: 27.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.415e-05/0.3558, allocations: 107.6 kB / 0.528 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.979e-05/0.3559, allocations: 176.3 kB / 0.5282 GB, free: 27.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.3559, allocations: 112 kB / 0.5283 GB, free: 27.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.782e-05/0.3559, allocations: 79.28 kB / 0.5284 GB, free: 27.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3559, allocations: 0 / 0.5284 GB, free: 27.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002509/0.3562, allocations: 2.594 kB / 0.5284 GB, free: 27.01 MB / 378.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 8.936e-05/0.3563, allocations: 168.5 kB / 0.5286 GB, free: 26.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 3.616e-05/0.3563, allocations: 3.938 kB / 0.5286 GB, free: 26.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3563, allocations: 2.531 kB / 0.5286 GB, free: 26.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.333e-06/0.3563, allocations: 0 / 0.5286 GB, free: 26.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.3566, allocations: 0.5273 MB / 0.5291 GB, free: 26.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001603/0.3568, allocations: 178.5 kB / 0.5292 GB, free: 26.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001033/0.3569, allocations: 0.6753 MB / 0.5299 GB, free: 25.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.817e-06/0.3569, allocations: 7.438 kB / 0.5299 GB, free: 25.41 MB / 378.7 MB Notification: Performance of SimCode: time 2.01e-07/0.3569, allocations: 0 / 0.5299 GB, free: 25.41 MB / 378.7 MB Notification: Performance of Templates: time 0.001352/0.3583, allocations: 360 kB / 0.5303 GB, free: 25.39 MB / 378.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