Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001147, allocations: 109.9 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 186.1 kB / 19.38 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2099/0.2099, allocations: 44.18 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 55.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3439, allocations: 60.82 MB / 0.5196 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001932/0.3459, allocations: 489.3 kB / 0.52 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000737/0.3466, allocations: 258 kB / 0.5203 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.661e-05/0.3467, allocations: 0 / 0.5203 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.158e-05/0.3467, allocations: 0 / 0.5203 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.346e-06/0.3467, allocations: 0 / 0.5203 GB, free: 3.156 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0004667/0.3472, allocations: 56.69 kB / 0.5203 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.814e-05/0.3473, allocations: 5.766 kB / 0.5203 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.832e-05/0.3473, allocations: 1.672 kB / 0.5203 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.374e-05/0.3474, allocations: 4.969 kB / 0.5203 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.238e-05/0.3474, allocations: 5.141 kB / 0.5203 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.163e-05/0.3474, allocations: 0 / 0.5203 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001995/0.3476, allocations: 65.84 kB / 0.5204 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.039e-05/0.3476, allocations: 0.6562 kB / 0.5204 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.331e-05/0.3477, allocations: 1.094 kB / 0.5204 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000166/0.3478, allocations: 53.5 kB / 0.5204 GB, free: 3.074 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.3479, allocations: 3.938 kB / 0.5205 GB, free: 3.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3479, allocations: 0 / 0.5205 GB, free: 3.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.3479, allocations: 4 kB / 0.5205 GB, free: 3.066 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003155/0.3482, allocations: 363.6 kB / 0.5208 GB, free: 2.672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.3483, allocations: 8.922 kB / 0.5208 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.3483, allocations: 2.031 kB / 0.5208 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.129e-05/0.3484, allocations: 161.1 kB / 0.521 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.3484, allocations: 5.266 kB / 0.521 GB, free: 2.473 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.067e-06/0.3484, allocations: 2.047 kB / 0.521 GB, free: 2.473 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.784e-05/0.3485, allocations: 29.98 kB / 0.521 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.3485, allocations: 4.188 kB / 0.521 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.3485, allocations: 3.938 kB / 0.521 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.3485, allocations: 1.281 kB / 0.521 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.024e-05/0.3486, allocations: 1.906 kB / 0.521 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001171/0.3487, allocations: 147.7 kB / 0.5212 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.981e-05/0.3487, allocations: 21.03 kB / 0.5212 GB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.698e-05/0.3487, allocations: 10.61 kB / 0.5212 GB, free: 2.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.585e-06/0.3488, allocations: 4.844 kB / 0.5212 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.342e-05/0.3488, allocations: 61.98 kB / 0.5212 GB, free: 2.125 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.243e-06/0.3488, allocations: 0 / 0.5212 GB, free: 2.125 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000185/0.349, allocations: 72.81 kB / 0.5213 GB, free: 2.051 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.349, allocations: 78.73 kB / 0.5214 GB, free: 1.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.789e-05/0.3491, allocations: 90.38 kB / 0.5215 GB, free: 1.859 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.204e-06/0.3491, allocations: 26.64 kB / 0.5215 GB, free: 1.828 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.204e-05/0.3491, allocations: 80.14 kB / 0.5216 GB, free: 1.746 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.3491, allocations: 1.188 kB / 0.5216 GB, free: 1.746 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.021e-05/0.3492, allocations: 17.58 kB / 0.5216 GB, free: 1.727 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.523e-05/0.3492, allocations: 315.5 kB / 0.5219 GB, free: 1.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.053e-05/0.3493, allocations: 1.469 kB / 0.5219 GB, free: 1.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.183e-06/0.3493, allocations: 1.953 kB / 0.5219 GB, free: 1.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.829e-05/0.3493, allocations: 59.42 kB / 0.522 GB, free: 1.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3493, allocations: 0 / 0.522 GB, free: 1.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.743e-05/0.3494, allocations: 69.25 kB / 0.522 GB, free: 1.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.3494, allocations: 36.06 kB / 0.5221 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.3494, allocations: 0 / 0.5221 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.3494, allocations: 3.938 kB / 0.5221 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.643e-06/0.3495, allocations: 1.828 kB / 0.5221 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.3495, allocations: 0 / 0.5221 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.658e-05/0.3495, allocations: 1.062 kB / 0.5221 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.3495, allocations: 5.812 kB / 0.5221 GB, free: 1.227 MB / 382.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 5.605e-05/0.3496, allocations: 134.5 kB / 0.5222 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.247e-06/0.3496, allocations: 4.562 kB / 0.5222 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.054e-05/0.3496, allocations: 12.84 kB / 0.5222 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3496, allocations: 3.938 kB / 0.5222 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-06/0.3496, allocations: 0.7031 kB / 0.5222 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.964e-05/0.3496, allocations: 78.88 kB / 0.5223 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.3496, allocations: 1.156 kB / 0.5223 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.588e-06/0.3497, allocations: 1.156 kB / 0.5223 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.16e-05/0.3497, allocations: 0.7031 kB / 0.5223 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 8.396e-05/0.3498, allocations: 197.6 kB / 0.5225 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 9.051e-05/0.3499, allocations: 242.2 kB / 0.5227 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.719e-05/0.3499, allocations: 3.109 kB / 0.5227 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.376e-05/0.3499, allocations: 76.03 kB / 0.5228 GB, free: 452 kB / 382.1 MB Notification: Performance of Backend: time 3.41e-07/0.3499, allocations: 1.281 kB / 0.5228 GB, free: 452 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007793/0.3507, allocations: 310.8 kB / 0.5231 GB, free: 256 kB / 382.1 MB Notification: Performance of SimCode: time 0.0003361/0.351, allocations: 0.5721 MB / 0.5237 GB, free: 15.62 MB / 398.1 MB Notification: Performance of Templates: time 0.003634/0.3547, allocations: 0.8202 MB / 0.5245 GB, free: 15.48 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches