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.001404/0.001404, allocations: 92.31 kB / 20.96 MB, free: 3.477 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.001652/0.001652, allocations: 161.7 kB / 24.27 MB, free: 176 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.542/1.542, allocations: 177.1 MB / 204.6 MB, free: 5.602 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.3644/0.3644, allocations: 32.79 MB / 293.9 MB, free: 1.219 MB / 266.7 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.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.132e-06/1.132e-06, allocations: 0 / 375.2 MB, free: 5.043 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.975e-05/3.088e-05, allocations: 6.25 kB / 375.2 MB, free: 5.035 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001536/0.001567, allocations: 0.4964 MB / 375.7 MB, free: 4.539 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007748/0.002342, allocations: 295.3 kB / 376 MB, free: 4.25 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.517e-05/0.002357, allocations: 0 / 376 MB, free: 4.25 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.467e-06/0.002366, allocations: 0 / 376 MB, free: 4.25 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 3.907e-06/0.00237, allocations: 0 / 376 MB, free: 4.25 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.000831/0.003201, allocations: 110.9 kB / 376.1 MB, free: 4.148 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.978e-05/0.003231, allocations: 0 / 376.1 MB, free: 4.148 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.693e-05/0.003258, allocations: 7.984 kB / 376.1 MB, free: 4.141 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.093e-05/0.003279, allocations: 4 kB / 376.1 MB, free: 4.137 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.489e-05/0.003294, allocations: 0 / 376.1 MB, free: 4.137 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.45e-06/0.003299, allocations: 0 / 376.1 MB, free: 4.137 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002105/0.00351, allocations: 119.7 kB / 376.2 MB, free: 4.02 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.44e-06/0.003515, allocations: 0 / 376.2 MB, free: 4.02 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.836e-05/0.003533, allocations: 0 / 376.2 MB, free: 4.02 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.003763, allocations: 103.7 kB / 376.3 MB, free: 3.918 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.003765, allocations: 0 / 376.3 MB, free: 3.918 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.003766, allocations: 0 / 376.3 MB, free: 3.918 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.516e-06/0.003769, allocations: 4 kB / 376.3 MB, free: 3.914 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.0003327/0.004102, allocations: 292 kB / 376.6 MB, free: 3.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.98e-05/0.004132, allocations: 8.031 kB / 376.6 MB, free: 3.582 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.353e-05/0.004165, allocations: 4.875 kB / 376.6 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.875e-05/0.004264, allocations: 101.8 kB / 376.7 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.004275, allocations: 4.375 kB / 376.8 MB, free: 3.449 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.131e-06/0.004281, allocations: 384 / 376.8 MB, free: 3.449 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.004386, allocations: 59.91 kB / 376.8 MB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.004393, allocations: 192 / 376.8 MB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.792e-06/0.004399, allocations: 384 / 376.8 MB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.046e-06/0.004402, allocations: 384 / 376.8 MB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.699e-05/0.004439, allocations: 29.64 kB / 376.8 MB, free: 3.344 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001173/0.004557, allocations: 105.3 kB / 376.9 MB, free: 3.211 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.932e-05/0.004626, allocations: 44.28 kB / 377 MB, free: 3.152 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.475e-05/0.004661, allocations: 34.66 kB / 377 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.862e-06/0.004668, allocations: 0 / 377 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.995e-05/0.004718, allocations: 56.27 kB / 377.1 MB, free: 3.039 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 4.719e-06/0.004722, allocations: 7.922 kB / 377.1 MB, free: 3.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002053/0.004928, allocations: 122.8 kB / 377.2 MB, free: 2.887 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.004985, allocations: 77.11 kB / 377.3 MB, free: 2.793 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.931e-05/0.005045, allocations: 89.86 kB / 377.4 MB, free: 2.695 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.005063, allocations: 25.83 kB / 377.4 MB, free: 2.664 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.193e-05/0.005105, allocations: 84.14 kB / 377.5 MB, free: 2.578 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.747e-05/0.005123, allocations: 7.922 kB / 377.5 MB, free: 2.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.5e-05/0.005158, allocations: 13.72 kB / 377.5 MB, free: 2.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.005325, allocations: 322.8 kB / 377.8 MB, free: 2.227 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.81e-05/0.005353, allocations: 29.7 kB / 377.8 MB, free: 2.191 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.2e-05/0.005375, allocations: 25.7 kB / 377.9 MB, free: 2.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.535e-05/0.005441, allocations: 64.2 kB / 377.9 MB, free: 2.082 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.005442, allocations: 0 / 377.9 MB, free: 2.082 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001098/0.005552, allocations: 93.09 kB / 378 MB, free: 1.973 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/0.005586, allocations: 33.8 kB / 378 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.00559, allocations: 0 / 378 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.005604, allocations: 0 / 378 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.066e-06/0.005607, allocations: 4 kB / 378.1 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.077e-06/0.005612, allocations: 0 / 378.1 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.965e-05/0.005631, allocations: 3.938 kB / 378.1 MB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-06/0.005636, allocations: 0 / 378.1 MB, free: 1.926 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.0001059/0.005741, allocations: 139.5 kB / 378.2 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.068e-05/0.005752, allocations: 7.891 kB / 378.2 MB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.865e-06/0.00576, allocations: 3 kB / 378.2 MB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.005761, allocations: 4 kB / 378.2 MB, free: 1.762 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.005764, allocations: 0 / 378.2 MB, free: 1.762 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.005766, allocations: 4 kB / 378.2 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.076e-05/0.005857, allocations: 101.2 kB / 378.3 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.005858, allocations: 0 / 378.3 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.005858, allocations: 0 / 378.3 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.005859, allocations: 0 / 378.3 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.005869, allocations: 8 kB / 378.3 MB, free: 1.621 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.005873, allocations: 3.984 kB / 378.3 MB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.005873, allocations: 0 / 378.3 MB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/0.006008, allocations: 120.5 kB / 378.4 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.486e-06/0.006017, allocations: 7.984 kB / 378.4 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.006029, allocations: 4 kB / 378.5 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.445e-06/0.006037, allocations: 0 / 378.5 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.175e-05/0.006049, allocations: 0 / 378.5 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.006052, allocations: 0 / 378.5 MB, free: 1.457 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.934e-05/0.006091, allocations: 75.28 kB / 378.5 MB, free: 1.383 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006091, allocations: 0 / 378.5 MB, free: 1.383 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002443/0.006335, allocations: 27.94 kB / 378.6 MB, free: 1.355 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.0007502/0.007085, allocations: 298.5 kB / 378.8 MB, free: 1.121 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001265/0.007212, allocations: 110.8 kB / 379 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/0.007214, allocations: 0 / 379 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.515e-05/0.007279, allocations: 89.05 kB / 379 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001322/0.007411, allocations: 4 kB / 379 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002102/0.007621, allocations: 112.1 kB / 379.2 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.193e-05/0.007673, allocations: 51.36 kB / 379.2 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.069e-06/0.007678, allocations: 0 / 379.2 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.467e-05/0.007693, allocations: 12.5 kB / 379.2 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of SimCode: time 3.81e-07/0.007693, allocations: 0 / 379.2 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of Templates: time 0.003937/0.01163, allocations: 1.015 MB / 380.2 MB, free: 15.64 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=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: 4.678314498974942]