Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.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.001734/0.001734, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002122/0.002122, allocations: 212.3 kB / 24.54 MB, free: 4.02 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.563/1.563, allocations: 230.3 MB / 258 MB, free: 8.16 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.2382/0.2382, allocations: 46.93 MB / 361.4 MB, free: 4.359 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.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams")
translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams") [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.002496/0.002496, allocations: 79.88 kB / 0.4971 GB, free: 7.492 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3397, allocations: 66.03 MB / 0.5616 GB, free: 4.473 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001639/0.3413, allocations: 500 kB / 0.5621 GB, free: 3.988 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0007829/0.3421, allocations: 317.3 kB / 0.5624 GB, free: 3.68 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 1.701e-05/0.3421, allocations: 3.938 kB / 0.5624 GB, free: 3.676 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.513e-05/0.3421, allocations: 4 kB / 0.5624 GB, free: 3.672 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.28e-06/0.3421, allocations: 0 / 0.5624 GB, free: 3.672 MB / 398.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:221:3-287:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Streams' contains a call to impure function 'Modelica.Utilities.Streams.print'.
Notification: Performance of NFTyping.typeClassSections: time 0.000842/0.343, allocations: 86.12 kB / 0.5625 GB, free: 3.59 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 5.831e-05/0.343, allocations: 7.984 kB / 0.5625 GB, free: 3.582 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 3.645e-05/0.3431, allocations: 4 kB / 0.5625 GB, free: 3.578 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 1.85e-05/0.3431, allocations: 7.938 kB / 0.5625 GB, free: 3.57 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 2.091e-05/0.3431, allocations: 3.984 kB / 0.5625 GB, free: 3.566 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.923e-06/0.3431, allocations: 0 / 0.5625 GB, free: 3.566 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002156/0.3433, allocations: 107.9 kB / 0.5626 GB, free: 3.461 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.364e-06/0.3433, allocations: 4 kB / 0.5626 GB, free: 3.457 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 1.617e-05/0.3434, allocations: 0 / 0.5626 GB, free: 3.457 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001801/0.3435, allocations: 87.61 kB / 0.5627 GB, free: 3.375 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3435, allocations: 0 / 0.5627 GB, free: 3.375 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.342e-06/0.3435, allocations: 0 / 0.5627 GB, free: 3.375 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 9.207e-06/0.3436, allocations: 0 / 0.5627 GB, free: 3.375 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.000382/0.3439, allocations: 294.6 kB / 0.563 GB, free: 3.055 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.344, allocations: 8.031 kB / 0.563 GB, free: 3.047 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 2.743e-05/0.344, allocations: 0.9375 kB / 0.563 GB, free: 3.047 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 9.227e-05/0.3441, allocations: 106.5 kB / 0.5631 GB, free: 2.918 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.3441, allocations: 4.359 kB / 0.5631 GB, free: 2.914 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.3441, allocations: 4.359 kB / 0.5631 GB, free: 2.91 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 8.386e-05/0.3442, allocations: 34.2 kB / 0.5631 GB, free: 2.871 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.3442, allocations: 192 / 0.5631 GB, free: 2.871 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.3442, allocations: 7.938 kB / 0.5631 GB, free: 2.863 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.3442, allocations: 0 / 0.5631 GB, free: 2.863 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 1.715e-05/0.3442, allocations: 4 kB / 0.5631 GB, free: 2.859 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001344/0.3444, allocations: 116.8 kB / 0.5633 GB, free: 2.703 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 4.348e-05/0.3444, allocations: 22.5 kB / 0.5633 GB, free: 2.672 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.487e-05/0.3444, allocations: 4.859 kB / 0.5633 GB, free: 2.664 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 7.855e-06/0.3444, allocations: 8.031 kB / 0.5633 GB, free: 2.656 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.177e-05/0.3445, allocations: 68.2 kB / 0.5634 GB, free: 2.574 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.3445, allocations: 0 / 0.5634 GB, free: 2.574 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0001731/0.3447, allocations: 63.34 kB / 0.5634 GB, free: 2.5 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.3447, allocations: 81.09 kB / 0.5635 GB, free: 2.402 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.031e-05/0.3448, allocations: 93.81 kB / 0.5636 GB, free: 2.301 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.3448, allocations: 25.7 kB / 0.5636 GB, free: 2.27 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 3.701e-05/0.3448, allocations: 80.14 kB / 0.5637 GB, free: 2.188 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.3449, allocations: 4 kB / 0.5637 GB, free: 2.184 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.029e-05/0.3449, allocations: 17.84 kB / 0.5637 GB, free: 2.16 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001417/0.345, allocations: 310.8 kB / 0.564 GB, free: 1.848 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.247e-06/0.345, allocations: 0 / 0.564 GB, free: 1.848 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.564e-06/0.345, allocations: 7.938 kB / 0.564 GB, free: 1.84 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 6.139e-05/0.3451, allocations: 60.27 kB / 0.5641 GB, free: 1.766 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3451, allocations: 0 / 0.5641 GB, free: 1.766 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 7.597e-05/0.3452, allocations: 63.39 kB / 0.5641 GB, free: 1.691 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.3452, allocations: 33.7 kB / 0.5642 GB, free: 1.652 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.3452, allocations: 4.094 kB / 0.5642 GB, free: 1.648 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.3452, allocations: 3.938 kB / 0.5642 GB, free: 1.645 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.3452, allocations: 0 / 0.5642 GB, free: 1.645 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.3452, allocations: 0 / 0.5642 GB, free: 1.645 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.464e-05/0.3453, allocations: 0 / 0.5642 GB, free: 1.645 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.3453, allocations: 4 kB / 0.5642 GB, free: 1.641 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 0.0001046/0.3454, allocations: 136.4 kB / 0.5643 GB, free: 1.492 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 7.995e-06/0.3454, allocations: 0 / 0.5643 GB, free: 1.492 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.229e-05/0.3454, allocations: 6.938 kB / 0.5643 GB, free: 1.484 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.3454, allocations: 8 kB / 0.5643 GB, free: 1.477 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3454, allocations: 3.938 kB / 0.5643 GB, free: 1.473 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.3454, allocations: 0 / 0.5643 GB, free: 1.473 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001061/0.3455, allocations: 120.8 kB / 0.5644 GB, free: 1.312 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.3455, allocations: 0 / 0.5644 GB, free: 1.312 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.3455, allocations: 0 / 0.5644 GB, free: 1.312 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.3455, allocations: 4 kB / 0.5644 GB, free: 1.309 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/0.3455, allocations: 3.938 kB / 0.5644 GB, free: 1.305 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.3455, allocations: 0 / 0.5644 GB, free: 1.305 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.3455, allocations: 0 / 0.5644 GB, free: 1.305 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001079/0.3456, allocations: 102.8 kB / 0.5645 GB, free: 1.18 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.727e-06/0.3456, allocations: 0 / 0.5645 GB, free: 1.18 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.3457, allocations: 3.938 kB / 0.5645 GB, free: 1.176 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.246e-06/0.3457, allocations: 0 / 0.5645 GB, free: 1.176 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.495e-05/0.3457, allocations: 7.938 kB / 0.5646 GB, free: 1.168 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.3457, allocations: 0 / 0.5646 GB, free: 1.168 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 4.758e-05/0.3457, allocations: 75.28 kB / 0.5646 GB, free: 1.094 MB / 398.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3457, allocations: 0 / 0.5646 GB, free: 1.094 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0002608/0.346, allocations: 43.89 kB / 0.5647 GB, free: 1.051 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.0006213/0.3466, allocations: 257.3 kB / 0.5649 GB, free: 0.832 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001004/0.3467, allocations: 63.39 kB / 0.565 GB, free: 0.7578 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3467, allocations: 4.062 kB / 0.565 GB, free: 0.7539 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.26e-05/0.3468, allocations: 59.41 kB / 0.565 GB, free: 0.6836 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.3469, allocations: 0 / 0.565 GB, free: 0.6836 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001842/0.3471, allocations: 81 kB / 0.5651 GB, free: 0.5781 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.3474, allocations: 0.6729 MB / 0.5658 GB, free: 15.88 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 5.491e-06/0.3474, allocations: 0 / 0.5658 GB, free: 15.88 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.109e-05/0.3474, allocations: 7.438 kB / 0.5658 GB, free: 15.87 MB / 414.1 MB
Notification: Performance of SimCode: time 4.61e-07/0.3474, allocations: 4 kB / 0.5658 GB, free: 15.87 MB / 414.1 MB
Notification: Performance of Templates: time 0.003995/0.3514, allocations: 0.9958 MB / 0.5668 GB, free: 14.87 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.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.103118698112667]