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.001469/0.001469, allocations: 111.2 kB / 18.45 MB, free: 4.617 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.001502/0.001502, allocations: 191.2 kB / 19.39 MB, free: 3.688 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.354/1.354, 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.2064/0.2064, allocations: 44.19 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 67.91 kB / 471.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4427/0.4441, allocations: 60.82 MB / 0.5196 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001573/0.4458, allocations: 483.4 kB / 0.52 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000628/0.4464, allocations: 255.9 kB / 0.5203 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.394e-05/0.4464, allocations: 0 / 0.5203 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.387e-05/0.4465, allocations: 1.438 kB / 0.5203 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.081e-06/0.4465, allocations: 0 / 0.5203 GB, free: 3.18 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.0003477/0.4468, allocations: 56.12 kB / 0.5203 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.619e-05/0.4469, allocations: 2.312 kB / 0.5203 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.6e-05/0.4469, allocations: 1.734 kB / 0.5203 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.979e-05/0.447, allocations: 5.344 kB / 0.5203 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.267e-05/0.447, allocations: 0.8438 kB / 0.5203 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.748e-06/0.447, allocations: 4 kB / 0.5203 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.4472, allocations: 66.94 kB / 0.5204 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.437e-06/0.4472, allocations: 3.984 kB / 0.5204 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.759e-05/0.4472, allocations: 1.25 kB / 0.5204 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001522/0.4474, allocations: 47.97 kB / 0.5204 GB, free: 3.102 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.4474, allocations: 1.5 kB / 0.5204 GB, free: 3.102 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.4474, allocations: 0 / 0.5204 GB, free: 3.102 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.4474, allocations: 0 / 0.5204 GB, free: 3.102 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.0002658/0.4477, allocations: 366.4 kB / 0.5208 GB, free: 2.703 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.4477, allocations: 9.297 kB / 0.5208 GB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.4478, allocations: 4.938 kB / 0.5208 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.835e-05/0.4478, allocations: 163.1 kB / 0.521 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.729e-06/0.4479, allocations: 384 / 0.521 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.4479, allocations: 1.75 kB / 0.521 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.625e-05/0.448, allocations: 34.05 kB / 0.521 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.448, allocations: 192 / 0.521 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.015e-06/0.448, allocations: 3.938 kB / 0.521 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.448, allocations: 1.125 kB / 0.521 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.938e-05/0.448, allocations: 6.609 kB / 0.521 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.96e-05/0.4481, allocations: 147.2 kB / 0.5212 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.39e-05/0.4482, allocations: 22.09 kB / 0.5212 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.212e-05/0.4482, allocations: 5.375 kB / 0.5212 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.154e-06/0.4482, allocations: 1.344 kB / 0.5212 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.817e-05/0.4483, allocations: 58.94 kB / 0.5212 GB, free: 2.164 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.4483, allocations: 0 / 0.5212 GB, free: 2.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001588/0.4484, allocations: 73.38 kB / 0.5213 GB, free: 2.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.389e-05/0.4485, allocations: 81.05 kB / 0.5214 GB, free: 1.992 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.568e-05/0.4485, allocations: 90.61 kB / 0.5215 GB, free: 1.895 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.382e-06/0.4485, allocations: 26.7 kB / 0.5215 GB, free: 1.863 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.024e-05/0.4485, allocations: 80.14 kB / 0.5216 GB, free: 1.781 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.433e-05/0.4485, allocations: 0.7188 kB / 0.5216 GB, free: 1.781 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.417e-05/0.4486, allocations: 20.97 kB / 0.5216 GB, free: 1.758 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.345e-05/0.4486, allocations: 311.5 kB / 0.5219 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.197e-05/0.4486, allocations: 5.875 kB / 0.5219 GB, free: 1.441 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-06/0.4486, allocations: 1.906 kB / 0.5219 GB, free: 1.441 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.849e-05/0.4487, allocations: 60.8 kB / 0.522 GB, free: 1.371 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.4487, allocations: 4 kB / 0.522 GB, free: 1.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.453e-05/0.4488, allocations: 64.19 kB / 0.522 GB, free: 1.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/0.4488, allocations: 35.66 kB / 0.5221 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.4488, allocations: 7.922 kB / 0.5221 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.4488, allocations: 4.969 kB / 0.5221 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.4488, allocations: 0.5156 kB / 0.5221 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.4488, allocations: 5.188 kB / 0.5221 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.578e-05/0.4489, allocations: 0.6562 kB / 0.5221 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.204e-06/0.4489, allocations: 1.125 kB / 0.5221 GB, free: 1.25 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 6.065e-05/0.4489, allocations: 138.9 kB / 0.5222 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.605e-06/0.4489, allocations: 5.047 kB / 0.5222 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.132e-05/0.449, allocations: 8.906 kB / 0.5222 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.449, allocations: 3.938 kB / 0.5222 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.449, allocations: 0.7031 kB / 0.5222 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.149e-05/0.449, allocations: 82.72 kB / 0.5223 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.707e-05/0.449, allocations: 1.953 kB / 0.5223 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.807e-06/0.449, allocations: 0 / 0.5223 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.241e-05/0.4491, allocations: 1.219 kB / 0.5223 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.457e-05/0.4492, allocations: 193.6 kB / 0.5225 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 9.176e-05/0.4493, allocations: 243.4 kB / 0.5227 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.649e-05/0.4493, allocations: 7.234 kB / 0.5227 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.287e-05/0.4493, allocations: 75.28 kB / 0.5228 GB, free: 472 kB / 382.1 MB Notification: Performance of Backend: time 1.8e-07/0.4493, allocations: 0 / 0.5228 GB, free: 472 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007317/0.45, allocations: 313.1 kB / 0.5231 GB, free: 276 kB / 382.1 MB Notification: Performance of SimCode: time 0.0003296/0.4504, allocations: 0.5721 MB / 0.5237 GB, free: 15.64 MB / 398.1 MB Notification: Performance of Templates: time 0.003544/0.4539, allocations: 0.8013 MB / 0.5244 GB, free: 15.51 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