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.001355/0.001355, allocations: 106 kB / 17.75 MB, free: 5.32 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.001322/0.001322, allocations: 192.1 kB / 18.68 MB, free: 4.395 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.393/1.393, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2128/0.2128, allocations: 44.18 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 67.89 kB / 470.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3523, allocations: 60.83 MB / 0.5188 GB, free: 3.582 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001593/0.354, allocations: 481.3 kB / 0.5193 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005985/0.3546, allocations: 260.6 kB / 0.5195 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.494e-05/0.3546, allocations: 0.9688 kB / 0.5195 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.239e-05/0.3546, allocations: 4 kB / 0.5195 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.869e-06/0.3546, allocations: 0 / 0.5195 GB, free: 3.141 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.000358/0.355, allocations: 52.78 kB / 0.5196 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.015e-05/0.3551, allocations: 2.156 kB / 0.5196 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.138e-05/0.3551, allocations: 2.094 kB / 0.5196 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.81e-05/0.3551, allocations: 0 / 0.5196 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.264e-05/0.3552, allocations: 1.797 kB / 0.5196 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.117e-06/0.3552, allocations: 0 / 0.5196 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001541/0.3553, allocations: 65.48 kB / 0.5197 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.534e-06/0.3554, allocations: 1.188 kB / 0.5197 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.905e-05/0.3554, allocations: 4.734 kB / 0.5197 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.3555, allocations: 61.14 kB / 0.5197 GB, free: 3.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3555, allocations: 0.6562 kB / 0.5197 GB, free: 3.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.3555, allocations: 0 / 0.5197 GB, free: 3.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.3555, allocations: 1 kB / 0.5197 GB, free: 3.059 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.0002387/0.3558, allocations: 349.3 kB / 0.5201 GB, free: 2.672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3558, allocations: 9.625 kB / 0.5201 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.36e-05/0.3559, allocations: 3.547 kB / 0.5201 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.316e-05/0.3559, allocations: 165 kB / 0.5202 GB, free: 2.473 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.356, allocations: 384 / 0.5202 GB, free: 2.473 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.288e-05/0.356, allocations: 5.656 kB / 0.5202 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.496e-05/0.3561, allocations: 37.75 kB / 0.5203 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.3561, allocations: 0.8906 kB / 0.5203 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.387e-06/0.3561, allocations: 3.938 kB / 0.5203 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.3561, allocations: 0.9375 kB / 0.5203 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.869e-05/0.3561, allocations: 1.828 kB / 0.5203 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.427e-05/0.3562, allocations: 148.3 kB / 0.5204 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.777e-05/0.3563, allocations: 21.36 kB / 0.5204 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.203e-05/0.3563, allocations: 9.984 kB / 0.5205 GB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.357e-06/0.3563, allocations: 4.688 kB / 0.5205 GB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.3563, allocations: 62.95 kB / 0.5205 GB, free: 2.117 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.423e-06/0.3563, allocations: 0 / 0.5205 GB, free: 2.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001531/0.3565, allocations: 69.28 kB / 0.5206 GB, free: 2.047 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.508e-05/0.3565, allocations: 77.91 kB / 0.5207 GB, free: 1.953 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.037e-05/0.3565, allocations: 90.86 kB / 0.5207 GB, free: 1.855 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.442e-06/0.3566, allocations: 29.83 kB / 0.5208 GB, free: 1.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.638e-06/0.3566, allocations: 80.8 kB / 0.5209 GB, free: 1.738 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.3566, allocations: 5.094 kB / 0.5209 GB, free: 1.734 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.336e-05/0.3566, allocations: 16.48 kB / 0.5209 GB, free: 1.715 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.214e-05/0.3567, allocations: 312.6 kB / 0.5212 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.268e-06/0.3567, allocations: 1.156 kB / 0.5212 GB, free: 1.402 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.582e-06/0.3567, allocations: 1.938 kB / 0.5212 GB, free: 1.402 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.328e-05/0.3567, allocations: 63.31 kB / 0.5212 GB, free: 1.328 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3567, allocations: 1.125 kB / 0.5212 GB, free: 1.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.056e-05/0.3568, allocations: 64.27 kB / 0.5213 GB, free: 1.262 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.3568, allocations: 31.97 kB / 0.5213 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3568, allocations: 0 / 0.5213 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.3569, allocations: 4.781 kB / 0.5213 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.3569, allocations: 1.156 kB / 0.5213 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.3569, allocations: 0 / 0.5213 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.494e-05/0.3569, allocations: 5.062 kB / 0.5213 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.535e-06/0.3569, allocations: 0.5625 kB / 0.5213 GB, free: 1.223 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 4.805e-05/0.3569, allocations: 139.3 kB / 0.5215 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.275e-06/0.357, allocations: 1.844 kB / 0.5215 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.348e-06/0.357, allocations: 11.72 kB / 0.5215 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.92e-07/0.357, allocations: 0 / 0.5215 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.357, allocations: 1.406 kB / 0.5215 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.357, allocations: 0.6562 kB / 0.5215 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.45e-05/0.3571, allocations: 152.6 kB / 0.5216 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3571, allocations: 1.156 kB / 0.5216 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3571, allocations: 0 / 0.5216 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.3571, allocations: 4.703 kB / 0.5216 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.3571, allocations: 5.094 kB / 0.5216 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.3571, allocations: 1 kB / 0.5216 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3571, allocations: 0.7969 kB / 0.5216 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.921e-05/0.3572, allocations: 89.12 kB / 0.5217 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.793e-05/0.3572, allocations: 77.81 kB / 0.5218 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.3572, allocations: 5.062 kB / 0.5218 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.07e-05/0.3572, allocations: 5.734 kB / 0.5218 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.579e-05/0.3572, allocations: 7.969 kB / 0.5218 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.3573, allocations: 5.781 kB / 0.5218 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.402e-05/0.3573, allocations: 80.41 kB / 0.5219 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3573, allocations: 0 / 0.5219 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002461/0.3575, allocations: 24.67 kB / 0.5219 GB, free: 0.5625 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0005477/0.3581, allocations: 272.9 kB / 0.5222 GB, free: 428 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.466e-05/0.3582, allocations: 58.44 kB / 0.5222 GB, free: 364 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3582, allocations: 4.062 kB / 0.5222 GB, free: 360 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.518e-05/0.3582, allocations: 56.33 kB / 0.5223 GB, free: 296 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.3584, allocations: 2.234 kB / 0.5223 GB, free: 296 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000168/0.3585, allocations: 86.44 kB / 0.5224 GB, free: 192 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002252/0.3588, allocations: 0.6752 MB / 0.523 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.973e-06/0.3588, allocations: 0 / 0.523 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.173e-05/0.3588, allocations: 11.38 kB / 0.5231 GB, free: 15.48 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3588, allocations: 1.438 kB / 0.5231 GB, free: 15.48 MB / 398.1 MB Notification: Performance of Templates: time 0.003361/0.3622, allocations: 0.7935 MB / 0.5238 GB, free: 15.34 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches