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.0008274/0.0008274, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003584/0.003584, allocations: 160.7 kB / 24.7 MB, free: 9.418 MB / 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 0.8737/0.8737, allocations: 177.1 MB / 205 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.2737/0.2737, allocations: 32.79 MB / 294.2 MB, free: 1.191 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 3.006e-06/3.006e-06, allocations: 0 / 440.8 MB, free: 3.766 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.673e-05/3.974e-05, allocations: 3.266 kB / 440.8 MB, free: 3.762 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00173/0.00177, allocations: 495.2 kB / 441.3 MB, free: 3.281 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008288/0.002599, allocations: 307.2 kB / 441.6 MB, free: 2.98 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.761e-05/0.002627, allocations: 0 / 441.6 MB, free: 2.98 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.928e-05/0.002646, allocations: 0 / 441.6 MB, free: 2.98 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 8.055e-06/0.002654, allocations: 4 kB / 441.6 MB, free: 2.977 MB / 410.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.001016/0.00367, allocations: 94.94 kB / 441.7 MB, free: 2.887 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 7.442e-05/0.003744, allocations: 3.938 kB / 441.7 MB, free: 2.883 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.382e-05/0.003798, allocations: 0 / 441.7 MB, free: 2.883 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.058e-05/0.003839, allocations: 4 kB / 441.7 MB, free: 2.879 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.488e-05/0.003874, allocations: 3.984 kB / 441.7 MB, free: 2.875 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.988e-06/0.003884, allocations: 0 / 441.7 MB, free: 2.875 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00025/0.004134, allocations: 115.7 kB / 441.8 MB, free: 2.762 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.44e-05/0.004148, allocations: 4 kB / 441.8 MB, free: 2.758 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.489e-05/0.004173, allocations: 0 / 441.8 MB, free: 2.758 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002909/0.004464, allocations: 99.78 kB / 441.9 MB, free: 2.66 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.004471, allocations: 7.984 kB / 441.9 MB, free: 2.652 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.004472, allocations: 0 / 441.9 MB, free: 2.652 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.004477, allocations: 0 / 441.9 MB, free: 2.652 MB / 410.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.0003823/0.004859, allocations: 283.9 kB / 442.2 MB, free: 2.336 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.05e-05/0.00492, allocations: 12.03 kB / 442.2 MB, free: 2.324 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.164e-05/0.004971, allocations: 0.9375 kB / 442.2 MB, free: 2.324 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.728e-05/0.005059, allocations: 101.8 kB / 442.3 MB, free: 2.199 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.005075, allocations: 8.312 kB / 442.3 MB, free: 2.191 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.241e-05/0.005087, allocations: 4.375 kB / 442.3 MB, free: 2.188 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.005209, allocations: 55.97 kB / 442.4 MB, free: 2.121 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.00522, allocations: 192 / 442.4 MB, free: 2.121 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.00523, allocations: 4.375 kB / 442.4 MB, free: 2.117 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.005236, allocations: 384 / 442.4 MB, free: 2.117 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.799e-05/0.005274, allocations: 37.56 kB / 442.4 MB, free: 2.074 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001433/0.005417, allocations: 97.33 kB / 442.5 MB, free: 1.949 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.787e-05/0.005485, allocations: 40.28 kB / 442.6 MB, free: 1.895 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.198e-05/0.005517, allocations: 38.64 kB / 442.6 MB, free: 1.848 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.005527, allocations: 4 kB / 442.6 MB, free: 1.844 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.474e-05/0.005582, allocations: 60.27 kB / 442.7 MB, free: 1.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.303e-06/0.005583, allocations: 0 / 442.7 MB, free: 1.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002436/0.005827, allocations: 118.7 kB / 442.8 MB, free: 1.629 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.891e-05/0.005885, allocations: 77.11 kB / 442.8 MB, free: 1.535 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.213e-05/0.005938, allocations: 97.86 kB / 442.9 MB, free: 1.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.005954, allocations: 25.7 kB / 443 MB, free: 1.398 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.932e-05/0.005983, allocations: 80.14 kB / 443 MB, free: 1.316 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.006006, allocations: 7.891 kB / 443.1 MB, free: 1.309 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-05/0.006044, allocations: 17.7 kB / 443.1 MB, free: 1.285 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.006155, allocations: 318.9 kB / 443.4 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.323e-05/0.006178, allocations: 29.7 kB / 443.4 MB, free: 0.9297 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.931e-05/0.006198, allocations: 29.7 kB / 443.4 MB, free: 0.8945 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.316e-05/0.006251, allocations: 60.27 kB / 443.5 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.006253, allocations: 4 kB / 443.5 MB, free: 0.8164 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.024e-05/0.006344, allocations: 89.03 kB / 443.6 MB, free: 0.7109 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/0.006373, allocations: 37.64 kB / 443.6 MB, free: 0.668 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.006379, allocations: 0 / 443.6 MB, free: 0.668 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.006393, allocations: 0 / 443.6 MB, free: 0.668 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.193e-06/0.006394, allocations: 4.094 kB / 443.6 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.006399, allocations: 0 / 443.6 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.468e-05/0.006414, allocations: 3.938 kB / 443.6 MB, free: 0.6602 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.006424, allocations: 4 kB / 443.6 MB, free: 0.6562 MB / 410.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 6.901e-05/0.006493, allocations: 139.5 kB / 443.8 MB, free: 0.5039 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.497e-06/0.006496, allocations: 0 / 443.8 MB, free: 0.5039 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.196e-05/0.006508, allocations: 7 kB / 443.8 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.00651, allocations: 0 / 443.8 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.006515, allocations: 0 / 443.8 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.006518, allocations: 0 / 443.8 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.867e-05/0.006577, allocations: 97.27 kB / 443.9 MB, free: 376 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.006578, allocations: 4 kB / 443.9 MB, free: 372 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.5e-07/0.006578, allocations: 4 kB / 443.9 MB, free: 368 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.41e-07/0.006579, allocations: 3.938 kB / 443.9 MB, free: 364 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/0.006586, allocations: 3.984 kB / 443.9 MB, free: 360 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.91e-07/0.006587, allocations: 0 / 443.9 MB, free: 360 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.006588, allocations: 0 / 443.9 MB, free: 360 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.88e-05/0.006676, allocations: 128.4 kB / 444 MB, free: 200 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.256e-06/0.00668, allocations: 0 / 444 MB, free: 200 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.006691, allocations: 4 kB / 444 MB, free: 196 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.241e-06/0.006697, allocations: 0 / 444 MB, free: 196 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.412e-05/0.006711, allocations: 4.031 kB / 444 MB, free: 192 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.006714, allocations: 0 / 444 MB, free: 192 kB / 410.7 MB Notification: Performance of sorting global known variables: time 2.644e-05/0.00674, allocations: 75.28 kB / 444.1 MB, free: 116 kB / 410.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.00674, allocations: 4 kB / 444.1 MB, free: 112 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001671/0.006908, allocations: 35.92 kB / 444.1 MB, free: 76 kB / 410.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.1734/0.1803, allocations: 270 kB / 444.4 MB, free: 46.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001234/0.1805, allocations: 112.7 kB / 444.5 MB, free: 46.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.1805, allocations: 3.969 kB / 444.5 MB, free: 46.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.57e-05/0.1805, allocations: 88.7 kB / 444.6 MB, free: 46.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001017/0.1806, allocations: 4.531 kB / 444.6 MB, free: 46.26 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001929/0.1808, allocations: 128.6 kB / 444.7 MB, free: 46.11 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.757e-05/0.1808, allocations: 60.47 kB / 444.8 MB, free: 46.04 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.139e-05/0.1808, allocations: 8.5 kB / 444.8 MB, free: 46.04 MB / 410.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1808, allocations: 3.844 kB / 444.8 MB, free: 46.04 MB / 410.7 MB Notification: Performance of Templates: time 0.001904/0.1827, allocations: 1.166 MB / 446 MB, free: 45.95 MB / 410.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.825695371255279]