Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 102 kB / 21.22 MB, free: 0.6562 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 185.2 kB / 24.51 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2393/0.2393, allocations: 44.91 MB / 353.5 MB, free: 11.85 MB / 286.1 MB
"
[Timeout remaining time 179]
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.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams")
translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002321/0.002321, allocations: 67.89 kB / 497.7 MB, free: 1.059 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3968/0.3992, allocations: 64.29 MB / 0.5488 GB, free: 13.14 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001766/0.4009, allocations: 497.8 kB / 0.5493 GB, free: 12.78 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0008352/0.4018, allocations: 312 kB / 0.5496 GB, free: 12.56 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 1.781e-05/0.4018, allocations: 4 kB / 0.5496 GB, free: 12.56 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.39e-05/0.4018, allocations: 7.875 kB / 0.5496 GB, free: 12.55 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.861e-06/0.4018, allocations: 0 / 0.5496 GB, free: 12.55 MB / 398.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288: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.0009551/0.4028, allocations: 97.47 kB / 0.5497 GB, free: 12.49 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 5.452e-05/0.4028, allocations: 1.969 kB / 0.5497 GB, free: 12.49 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 4.239e-05/0.4028, allocations: 4.891 kB / 0.5497 GB, free: 12.49 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.012e-05/0.4029, allocations: 0.8125 kB / 0.5497 GB, free: 12.49 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 1.98e-05/0.4029, allocations: 0 / 0.5497 GB, free: 12.49 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.352e-06/0.4029, allocations: 1.188 kB / 0.5497 GB, free: 12.49 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002526/0.4031, allocations: 114.2 kB / 0.5498 GB, free: 12.43 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 1.211e-05/0.4032, allocations: 3.984 kB / 0.5498 GB, free: 12.43 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 3.027e-05/0.4032, allocations: 9.125 kB / 0.5498 GB, free: 12.42 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000209/0.4034, allocations: 83.11 kB / 0.5499 GB, free: 12.37 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.4034, allocations: 0 / 0.5499 GB, free: 12.37 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.784e-06/0.4034, allocations: 0 / 0.5499 GB, free: 12.37 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 6.562e-06/0.4034, allocations: 1.062 kB / 0.5499 GB, free: 12.37 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.0004727/0.4039, allocations: 286.2 kB / 0.5502 GB, free: 12.07 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.4039, allocations: 10.42 kB / 0.5502 GB, free: 12.07 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.905e-05/0.404, allocations: 0.9375 kB / 0.5502 GB, free: 12.07 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 9.201e-05/0.4041, allocations: 103.7 kB / 0.5503 GB, free: 11.95 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.4041, allocations: 5.469 kB / 0.5503 GB, free: 11.94 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 9.338e-06/0.4041, allocations: 1.438 kB / 0.5503 GB, free: 11.94 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.4042, allocations: 40.19 kB / 0.5503 GB, free: 11.9 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.4042, allocations: 192 / 0.5503 GB, free: 11.9 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.4042, allocations: 4.906 kB / 0.5503 GB, free: 11.89 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.4042, allocations: 0 / 0.5503 GB, free: 11.89 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 1.969e-05/0.4042, allocations: 1.062 kB / 0.5503 GB, free: 11.89 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001593/0.4044, allocations: 114.8 kB / 0.5504 GB, free: 11.74 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 5.142e-05/0.4044, allocations: 20.64 kB / 0.5504 GB, free: 11.71 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.949e-05/0.4045, allocations: 13.81 kB / 0.5505 GB, free: 11.7 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 6.923e-06/0.4045, allocations: 0 / 0.5505 GB, free: 11.7 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.339e-05/0.4045, allocations: 62.14 kB / 0.5505 GB, free: 11.62 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.4045, allocations: 0 / 0.5505 GB, free: 11.62 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0001873/0.4047, allocations: 63.41 kB / 0.5506 GB, free: 11.56 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.4048, allocations: 77.11 kB / 0.5506 GB, free: 11.46 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.25e-05/0.4049, allocations: 95.12 kB / 0.5507 GB, free: 11.36 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.4049, allocations: 33.64 kB / 0.5508 GB, free: 11.32 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 3.993e-05/0.4049, allocations: 84.14 kB / 0.5509 GB, free: 11.24 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.809e-05/0.4049, allocations: 1.156 kB / 0.5509 GB, free: 11.24 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.04e-05/0.405, allocations: 11.97 kB / 0.5509 GB, free: 11.22 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001659/0.4051, allocations: 311.9 kB / 0.5512 GB, free: 10.91 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.718e-06/0.4052, allocations: 0 / 0.5512 GB, free: 10.91 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.611e-06/0.4052, allocations: 5.094 kB / 0.5512 GB, free: 10.91 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 6.23e-05/0.4052, allocations: 67.73 kB / 0.5512 GB, free: 10.83 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.4052, allocations: 0 / 0.5512 GB, free: 10.83 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 8.315e-05/0.4053, allocations: 67.39 kB / 0.5513 GB, free: 10.76 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.161e-05/0.4053, allocations: 30.45 kB / 0.5513 GB, free: 10.73 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.4054, allocations: 1.188 kB / 0.5513 GB, free: 10.73 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.4054, allocations: 3.938 kB / 0.5513 GB, free: 10.72 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.4054, allocations: 0 / 0.5513 GB, free: 10.72 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.4054, allocations: 1.219 kB / 0.5513 GB, free: 10.72 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.526e-05/0.4054, allocations: 0 / 0.5513 GB, free: 10.72 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.4054, allocations: 5.156 kB / 0.5513 GB, free: 10.72 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.0001084/0.4055, allocations: 145.9 kB / 0.5515 GB, free: 10.56 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.4055, allocations: 5.172 kB / 0.5515 GB, free: 10.56 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.151e-05/0.4055, allocations: 10.89 kB / 0.5515 GB, free: 10.54 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.4055, allocations: 0 / 0.5515 GB, free: 10.54 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.4055, allocations: 1.219 kB / 0.5515 GB, free: 10.54 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.4055, allocations: 0 / 0.5515 GB, free: 10.54 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001231/0.4057, allocations: 123.3 kB / 0.5516 GB, free: 10.38 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.4057, allocations: 3.938 kB / 0.5516 GB, free: 10.38 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.595e-06/0.4057, allocations: 3.984 kB / 0.5516 GB, free: 10.38 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.4057, allocations: 5.094 kB / 0.5516 GB, free: 10.37 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.4057, allocations: 3.938 kB / 0.5516 GB, free: 10.37 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.4057, allocations: 1.062 kB / 0.5516 GB, free: 10.37 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4057, allocations: 0 / 0.5516 GB, free: 10.37 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001143/0.4058, allocations: 89.83 kB / 0.5517 GB, free: 10.27 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 6.913e-06/0.4058, allocations: 5.172 kB / 0.5517 GB, free: 10.26 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.567e-05/0.4058, allocations: 5.125 kB / 0.5517 GB, free: 10.26 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.798e-06/0.4058, allocations: 5.281 kB / 0.5517 GB, free: 10.25 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.267e-05/0.4058, allocations: 0 / 0.5517 GB, free: 10.25 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.4059, allocations: 1.188 kB / 0.5517 GB, free: 10.25 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 4.707e-05/0.4059, allocations: 79.22 kB / 0.5518 GB, free: 10.18 MB / 398.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.4059, allocations: 0 / 0.5518 GB, free: 10.18 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0002574/0.4062, allocations: 39.92 kB / 0.5518 GB, free: 10.16 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.0007025/0.4069, allocations: 272.4 kB / 0.5521 GB, free: 10.01 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001177/0.407, allocations: 68.83 kB / 0.5522 GB, free: 9.934 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.407, allocations: 0 / 0.5522 GB, free: 9.934 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.594e-05/0.407, allocations: 54.72 kB / 0.5522 GB, free: 9.871 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.4072, allocations: 9 kB / 0.5522 GB, free: 9.863 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002002/0.4074, allocations: 76.42 kB / 0.5523 GB, free: 9.77 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.4077, allocations: 0.6781 MB / 0.553 GB, free: 9.066 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 5.671e-06/0.4077, allocations: 0 / 0.553 GB, free: 9.066 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.385e-05/0.4077, allocations: 8.844 kB / 0.553 GB, free: 9.059 MB / 398.1 MB
Notification: Performance of SimCode: time 3.4e-07/0.4077, allocations: 0 / 0.553 GB, free: 9.059 MB / 398.1 MB
Notification: Performance of Templates: time 0.004241/0.412, allocations: 0.9893 MB / 0.5539 GB, free: 8.531 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.2854231763631105]