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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002371/0.002371, allocations: 87.67 kB / 20.96 MB, free: 3.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003043/0.003043, allocations: 165.3 kB / 24.27 MB, free: 136 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.635/1.635, allocations: 177.1 MB / 204.6 MB, free: 5.586 MB / 186.7 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.3532/0.3532, allocations: 32.8 MB / 293.9 MB, free: 1.207 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 1.753e-06/1.753e-06, allocations: 0 / 375.2 MB, free: 5.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.874e-05/3.05e-05, allocations: 6.25 kB / 375.2 MB, free: 5.012 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001982/0.002013, allocations: 0.4892 MB / 375.7 MB, free: 4.52 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007751/0.002788, allocations: 295.2 kB / 376 MB, free: 4.23 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.561e-05/0.002803, allocations: 0 / 376 MB, free: 4.23 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.167e-06/0.002813, allocations: 0 / 376 MB, free: 4.23 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 3.296e-06/0.002816, allocations: 0 / 376 MB, free: 4.23 MB / 346.7 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.0007845/0.0036, allocations: 106 kB / 376.1 MB, free: 4.133 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.701e-05/0.003637, allocations: 3.984 kB / 376.1 MB, free: 4.129 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.113e-05/0.003658, allocations: 4 kB / 376.1 MB, free: 4.125 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.105e-05/0.00368, allocations: 0 / 376.1 MB, free: 4.125 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.697e-05/0.003696, allocations: 7.984 kB / 376.1 MB, free: 4.117 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.535e-05/0.003712, allocations: 0 / 376.1 MB, free: 4.117 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000203/0.003915, allocations: 115.7 kB / 376.2 MB, free: 4.004 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.771e-06/0.003921, allocations: 0 / 376.2 MB, free: 4.004 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.411e-05/0.003935, allocations: 0 / 376.2 MB, free: 4.004 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002161/0.004151, allocations: 107.7 kB / 376.4 MB, free: 3.898 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.004152, allocations: 0 / 376.4 MB, free: 3.898 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.004153, allocations: 0 / 376.4 MB, free: 3.898 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.106e-06/0.004156, allocations: 0 / 376.4 MB, free: 3.898 MB / 346.7 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.0003826/0.004539, allocations: 385.9 kB / 376.7 MB, free: 3.477 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.859e-05/0.004567, allocations: 11.97 kB / 376.7 MB, free: 3.465 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.463e-05/0.004602, allocations: 12.88 kB / 376.8 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.953e-05/0.004702, allocations: 104.6 kB / 376.9 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.004713, allocations: 4.375 kB / 376.9 MB, free: 3.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-06/0.004722, allocations: 4.375 kB / 376.9 MB, free: 3.316 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.127e-05/0.004813, allocations: 59.97 kB / 376.9 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.00482, allocations: 192 / 376.9 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.001e-06/0.004826, allocations: 384 / 376.9 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.995e-06/0.004829, allocations: 384 / 376.9 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.785e-05/0.004867, allocations: 37.62 kB / 377 MB, free: 3.203 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001239/0.00499, allocations: 108.6 kB / 377.1 MB, free: 3.062 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.541e-05/0.005066, allocations: 60.73 kB / 377.1 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.35e-05/0.005099, allocations: 37.39 kB / 377.2 MB, free: 2.938 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.883e-06/0.005106, allocations: 0 / 377.2 MB, free: 2.938 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.478e-05/0.005161, allocations: 67.14 kB / 377.2 MB, free: 2.855 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.61e-07/0.005162, allocations: 0 / 377.2 MB, free: 2.855 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001886/0.00535, allocations: 114.8 kB / 377.3 MB, free: 2.719 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.612e-05/0.005416, allocations: 85.05 kB / 377.4 MB, free: 2.617 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.8e-05/0.005504, allocations: 146.2 kB / 377.6 MB, free: 2.461 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.005522, allocations: 25.7 kB / 377.6 MB, free: 2.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.144e-05/0.005603, allocations: 126.9 kB / 377.7 MB, free: 2.301 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.00562, allocations: 8.062 kB / 377.7 MB, free: 2.293 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.75e-05/0.005657, allocations: 23.36 kB / 377.7 MB, free: 2.262 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002568/0.005914, allocations: 496.1 kB / 378.2 MB, free: 1.766 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.44e-05/0.005939, allocations: 25.7 kB / 378.3 MB, free: 1.734 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.679e-05/0.005965, allocations: 33.7 kB / 378.3 MB, free: 1.695 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.132e-05/0.006027, allocations: 63.09 kB / 378.4 MB, free: 1.617 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.006028, allocations: 0 / 378.4 MB, free: 1.617 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.785e-05/0.006126, allocations: 89.09 kB / 378.4 MB, free: 1.512 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.00616, allocations: 35.2 kB / 378.5 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.006163, allocations: 4.094 kB / 378.5 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.006174, allocations: 0 / 378.5 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.21e-07/0.006174, allocations: 0 / 378.5 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-06/0.006177, allocations: 0 / 378.5 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.643e-05/0.006194, allocations: 7.938 kB / 378.5 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.166e-06/0.006202, allocations: 4 kB / 378.5 MB, free: 1.457 MB / 346.7 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.0001264/0.006328, allocations: 186.2 kB / 378.7 MB, free: 1.258 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.405e-05/0.006342, allocations: 11.94 kB / 378.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.033e-06/0.006349, allocations: 3 kB / 378.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.00635, allocations: 0 / 378.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.006353, allocations: 0 / 378.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-06/0.006354, allocations: 4 kB / 378.7 MB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.79e-05/0.006452, allocations: 112.6 kB / 378.8 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.006453, allocations: 0 / 378.8 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.006453, allocations: 0 / 378.8 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/0.006463, allocations: 0 / 378.8 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.006472, allocations: 3.984 kB / 378.8 MB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.006472, allocations: 0 / 378.8 MB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.006475, allocations: 4 kB / 378.8 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001469/0.006622, allocations: 131.7 kB / 378.9 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.452e-06/0.006629, allocations: 3.984 kB / 378.9 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.306e-05/0.006642, allocations: 8.031 kB / 378.9 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.286e-06/0.00665, allocations: 4 kB / 379 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.273e-05/0.006663, allocations: 0 / 379 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.006665, allocations: 0 / 379 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.02e-05/0.006726, allocations: 119.2 kB / 379.1 MB, free: 0.793 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006726, allocations: 0 / 379.1 MB, free: 0.793 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002364/0.006962, allocations: 35.92 kB / 379.1 MB, free: 0.7578 MB / 346.7 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.000878/0.00784, allocations: 280.4 kB / 379.4 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001389/0.007979, allocations: 118.5 kB / 379.5 MB, free: 404 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.007981, allocations: 3.938 kB / 379.5 MB, free: 400 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.881e-05/0.008049, allocations: 88.8 kB / 379.6 MB, free: 288 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000113/0.008163, allocations: 7.938 kB / 379.6 MB, free: 280 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002132/0.008376, allocations: 117.6 kB / 379.7 MB, free: 124 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.823e-05/0.008424, allocations: 55.48 kB / 379.8 MB, free: 48 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.268e-06/0.008428, allocations: 4 kB / 379.8 MB, free: 44 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.5e-05/0.008443, allocations: 8.5 kB / 379.8 MB, free: 36 kB / 346.7 MB Notification: Performance of SimCode: time 4.21e-07/0.008444, allocations: 0 / 379.8 MB, free: 36 kB / 346.7 MB Notification: Performance of Templates: time 0.00399/0.01243, allocations: 1.031 MB / 380.8 MB, free: 15.01 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] 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.005210765986703]