Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001371/0.001371, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001639/0.001639, allocations: 212 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 230.3 MB / 258 MB, free: 8.215 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2414/0.2414, allocations: 46.93 MB / 361.4 MB, free: 4.395 MB / 286.1 MB
"
[Timeout remaining time 180]
Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal")
translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal") [Timeout 660]
"Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002259/0.002259, allocations: 75.88 kB / 0.4971 GB, free: 7.535 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3589, allocations: 66.04 MB / 0.5616 GB, free: 4.535 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001864/0.3608, allocations: 492.5 kB / 0.5621 GB, free: 4.059 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0007254/0.3615, allocations: 265.4 kB / 0.5624 GB, free: 3.801 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 2.478e-05/0.3615, allocations: 7.938 kB / 0.5624 GB, free: 3.793 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.724e-05/0.3615, allocations: 0 / 0.5624 GB, free: 3.793 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 6.172e-06/0.3615, allocations: 4 kB / 0.5624 GB, free: 3.789 MB / 398.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:398:3-453: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.0003563/0.3619, allocations: 55.81 kB / 0.5624 GB, free: 3.734 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 5.702e-05/0.3619, allocations: 0 / 0.5624 GB, free: 3.734 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 4.223e-05/0.362, allocations: 0 / 0.5624 GB, free: 3.734 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 1.615e-05/0.362, allocations: 0 / 0.5624 GB, free: 3.734 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 2.791e-05/0.362, allocations: 11.92 kB / 0.5624 GB, free: 3.723 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.541e-05/0.362, allocations: 3.984 kB / 0.5624 GB, free: 3.719 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001618/0.3622, allocations: 63.95 kB / 0.5625 GB, free: 3.656 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.584e-06/0.3622, allocations: 0 / 0.5625 GB, free: 3.656 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 4.063e-05/0.3623, allocations: 4 kB / 0.5625 GB, free: 3.652 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.3624, allocations: 55.67 kB / 0.5626 GB, free: 3.602 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3624, allocations: 0 / 0.5626 GB, free: 3.602 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.483e-06/0.3624, allocations: 0 / 0.5626 GB, free: 3.602 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 6.202e-06/0.3624, allocations: 0 / 0.5626 GB, free: 3.602 MB / 398.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.0003725/0.3628, allocations: 286.6 kB / 0.5628 GB, free: 3.289 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.3628, allocations: 12.03 kB / 0.5628 GB, free: 3.277 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.315e-05/0.3629, allocations: 0.9375 kB / 0.5628 GB, free: 3.277 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 8.254e-05/0.3629, allocations: 106.5 kB / 0.5629 GB, free: 3.148 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.363, allocations: 384 / 0.5629 GB, free: 3.148 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.104e-05/0.363, allocations: 4.375 kB / 0.5629 GB, free: 3.145 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.3631, allocations: 34.27 kB / 0.563 GB, free: 3.105 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.3631, allocations: 4.125 kB / 0.563 GB, free: 3.102 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.3631, allocations: 7.922 kB / 0.563 GB, free: 3.094 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.3631, allocations: 0 / 0.563 GB, free: 3.094 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 2.218e-05/0.3631, allocations: 7.938 kB / 0.563 GB, free: 3.086 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001365/0.3633, allocations: 112.8 kB / 0.5631 GB, free: 2.934 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 4.255e-05/0.3633, allocations: 14.58 kB / 0.5631 GB, free: 2.91 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.477e-05/0.3633, allocations: 12.95 kB / 0.5631 GB, free: 2.895 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.099e-05/0.3633, allocations: 4 kB / 0.5631 GB, free: 2.891 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.761e-05/0.3634, allocations: 56.27 kB / 0.5632 GB, free: 2.82 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.3634, allocations: 0 / 0.5632 GB, free: 2.82 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0001878/0.3636, allocations: 71.27 kB / 0.5633 GB, free: 2.738 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.3636, allocations: 77.11 kB / 0.5633 GB, free: 2.645 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.579e-05/0.3637, allocations: 93.81 kB / 0.5634 GB, free: 2.543 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.3637, allocations: 33.83 kB / 0.5634 GB, free: 2.504 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 3.817e-05/0.3637, allocations: 80.14 kB / 0.5635 GB, free: 2.422 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.932e-05/0.3638, allocations: 7.938 kB / 0.5635 GB, free: 2.414 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.145e-05/0.3638, allocations: 13.7 kB / 0.5635 GB, free: 2.395 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001376/0.3639, allocations: 314.8 kB / 0.5638 GB, free: 2.078 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.3639, allocations: 0 / 0.5638 GB, free: 2.078 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.41e-06/0.3639, allocations: 0 / 0.5638 GB, free: 2.078 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 6.487e-05/0.364, allocations: 64.33 kB / 0.5639 GB, free: 2 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.364, allocations: 0 / 0.5639 GB, free: 2 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 8.069e-05/0.3641, allocations: 75.33 kB / 0.564 GB, free: 1.914 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.592e-05/0.3641, allocations: 29.7 kB / 0.564 GB, free: 1.879 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.309e-06/0.3641, allocations: 0 / 0.564 GB, free: 1.879 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.3641, allocations: 3.938 kB / 0.564 GB, free: 1.875 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.3642, allocations: 0 / 0.564 GB, free: 1.875 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.3642, allocations: 0 / 0.564 GB, free: 1.875 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.392e-05/0.3642, allocations: 4 kB / 0.564 GB, free: 1.871 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.3642, allocations: 0 / 0.564 GB, free: 1.871 MB / 398.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 9.795e-05/0.3643, allocations: 136.5 kB / 0.5641 GB, free: 1.723 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.508e-06/0.3643, allocations: 4 kB / 0.5641 GB, free: 1.719 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.695e-05/0.3643, allocations: 10.92 kB / 0.5642 GB, free: 1.707 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.3643, allocations: 0 / 0.5642 GB, free: 1.707 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3643, allocations: 0 / 0.5642 GB, free: 1.707 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.3643, allocations: 0 / 0.5642 GB, free: 1.707 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001092/0.3644, allocations: 120.8 kB / 0.5643 GB, free: 1.547 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.3644, allocations: 0 / 0.5643 GB, free: 1.547 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.3644, allocations: 0 / 0.5643 GB, free: 1.547 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.3644, allocations: 0 / 0.5643 GB, free: 1.547 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.3644, allocations: 7.938 kB / 0.5643 GB, free: 1.539 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3644, allocations: 0 / 0.5643 GB, free: 1.539 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.3644, allocations: 7.922 kB / 0.5643 GB, free: 1.531 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00011/0.3645, allocations: 90.78 kB / 0.5644 GB, free: 1.418 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.749e-06/0.3645, allocations: 0 / 0.5644 GB, free: 1.418 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.3646, allocations: 11.92 kB / 0.5644 GB, free: 1.406 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-06/0.3646, allocations: 0 / 0.5644 GB, free: 1.406 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.617e-05/0.3646, allocations: 4.031 kB / 0.5644 GB, free: 1.402 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.3646, allocations: 0 / 0.5644 GB, free: 1.402 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 4.395e-05/0.3646, allocations: 75.28 kB / 0.5645 GB, free: 1.328 MB / 398.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.3646, allocations: 0 / 0.5645 GB, free: 1.328 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0002391/0.3649, allocations: 27.88 kB / 0.5645 GB, free: 1.301 MB / 398.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.000683/0.3656, allocations: 265.5 kB / 0.5647 GB, free: 1.082 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001191/0.3657, allocations: 59.39 kB / 0.5648 GB, free: 1.012 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3657, allocations: 0 / 0.5648 GB, free: 1.012 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.758e-05/0.3657, allocations: 67.41 kB / 0.5649 GB, free: 0.9336 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001459/0.3659, allocations: 0 / 0.5649 GB, free: 0.9336 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002362/0.3661, allocations: 81 kB / 0.5649 GB, free: 0.8281 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.3665, allocations: 0.6729 MB / 0.5656 GB, free: 132 kB / 398.1 MB
Notification: Performance of simCode: alias equations: time 7.184e-06/0.3665, allocations: 0 / 0.5656 GB, free: 132 kB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.212e-05/0.3665, allocations: 7.438 kB / 0.5656 GB, free: 124 kB / 398.1 MB
Notification: Performance of SimCode: time 4.1e-07/0.3665, allocations: 4 kB / 0.5656 GB, free: 120 kB / 398.1 MB
Notification: Performance of Templates: time 0.00413/0.3706, allocations: 0.805 MB / 0.5664 GB, free: 15.31 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.255225437693298]