Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001854/0.001854, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002505/0.002505, allocations: 214.7 kB / 24.48 MB, free: 3.941 MB / 14.72 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.527/1.527, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2265/0.2265, allocations: 46.97 MB / 361.6 MB, free: 4.012 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+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.1.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 67.91 kB / 0.4973 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3488, allocations: 66.04 MB / 0.5618 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001628/0.3504, allocations: 487.9 kB / 0.5623 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008224/0.3513, allocations: 305.3 kB / 0.5625 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.167e-05/0.3513, allocations: 0 / 0.5625 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.219e-05/0.3513, allocations: 0 / 0.5625 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.502e-06/0.3513, allocations: 0 / 0.5625 GB, free: 3.375 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.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.0008899/0.3522, allocations: 114.4 kB / 0.5627 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.597e-05/0.3522, allocations: 0 / 0.5627 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.274e-05/0.3523, allocations: 0 / 0.5627 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.919e-05/0.3523, allocations: 0 / 0.5627 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.266e-05/0.3523, allocations: 4 kB / 0.5627 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.831e-06/0.3523, allocations: 0 / 0.5627 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002214/0.3525, allocations: 107.9 kB / 0.5628 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.438e-06/0.3525, allocations: 3.984 kB / 0.5628 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.082e-05/0.3526, allocations: 4 kB / 0.5628 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001978/0.3528, allocations: 87.61 kB / 0.5629 GB, free: 3.066 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.415e-06/0.3528, allocations: 3.984 kB / 0.5629 GB, free: 3.062 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3528, allocations: 4 kB / 0.5629 GB, free: 3.059 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.3528, allocations: 0 / 0.5629 GB, free: 3.059 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.0003665/0.3531, allocations: 286.7 kB / 0.5631 GB, free: 2.746 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.3532, allocations: 8.031 kB / 0.5631 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.889e-05/0.3532, allocations: 0.9375 kB / 0.5631 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.733e-05/0.3533, allocations: 106.5 kB / 0.5632 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.3533, allocations: 384 / 0.5632 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.3533, allocations: 4.312 kB / 0.5633 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.3534, allocations: 55.97 kB / 0.5633 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.3534, allocations: 192 / 0.5633 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.3535, allocations: 7.938 kB / 0.5633 GB, free: 2.531 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3535, allocations: 0 / 0.5633 GB, free: 2.531 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.346e-05/0.3535, allocations: 37.69 kB / 0.5633 GB, free: 2.488 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001259/0.3536, allocations: 93.33 kB / 0.5634 GB, free: 2.367 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.221e-05/0.3537, allocations: 44.31 kB / 0.5635 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.28e-05/0.3537, allocations: 34.5 kB / 0.5635 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.767e-06/0.3537, allocations: 0 / 0.5635 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.277e-05/0.3538, allocations: 64.33 kB / 0.5636 GB, free: 2.188 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.3538, allocations: 0 / 0.5636 GB, free: 2.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002027/0.354, allocations: 118.9 kB / 0.5637 GB, free: 2.047 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.447e-05/0.3541, allocations: 85.05 kB / 0.5638 GB, free: 1.945 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.219e-05/0.3541, allocations: 93.81 kB / 0.5639 GB, free: 1.844 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.3541, allocations: 25.7 kB / 0.5639 GB, free: 1.812 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.021e-05/0.3542, allocations: 80.14 kB / 0.564 GB, free: 1.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.3542, allocations: 8 kB / 0.564 GB, free: 1.723 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.053e-05/0.3542, allocations: 13.7 kB / 0.564 GB, free: 1.703 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.3544, allocations: 310.8 kB / 0.5643 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.849e-05/0.3544, allocations: 33.64 kB / 0.5643 GB, free: 1.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.752e-05/0.3544, allocations: 25.7 kB / 0.5643 GB, free: 1.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.438e-05/0.3545, allocations: 68.33 kB / 0.5644 GB, free: 1.238 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.3545, allocations: 3.938 kB / 0.5644 GB, free: 1.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.981e-05/0.3546, allocations: 89.09 kB / 0.5645 GB, free: 1.129 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.3546, allocations: 29.7 kB / 0.5645 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3546, allocations: 0 / 0.5645 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.3546, allocations: 0 / 0.5645 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.815e-06/0.3546, allocations: 7.938 kB / 0.5645 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.3546, allocations: 3.984 kB / 0.5645 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.26e-05/0.3546, allocations: 0 / 0.5645 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-06/0.3547, allocations: 0 / 0.5645 GB, free: 1.082 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.0001116/0.3548, allocations: 147.5 kB / 0.5647 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.009e-05/0.3548, allocations: 4 kB / 0.5647 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.286e-05/0.3548, allocations: 3 kB / 0.5647 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.3548, allocations: 3.938 kB / 0.5647 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.3548, allocations: 4 kB / 0.5647 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.3548, allocations: 0 / 0.5647 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.634e-05/0.3549, allocations: 101.3 kB / 0.5648 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3549, allocations: 0 / 0.5648 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3549, allocations: 0 / 0.5648 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.3549, allocations: 3.984 kB / 0.5648 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-06/0.3549, allocations: 0 / 0.5648 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.3549, allocations: 8 kB / 0.5648 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3549, allocations: 3.938 kB / 0.5648 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001216/0.355, allocations: 116.5 kB / 0.5649 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.737e-06/0.355, allocations: 0 / 0.5649 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.073e-05/0.3551, allocations: 0 / 0.5649 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-06/0.3551, allocations: 0 / 0.5649 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.758e-05/0.3551, allocations: 11.88 kB / 0.5649 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.3551, allocations: 0 / 0.5649 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.247e-05/0.3551, allocations: 79.22 kB / 0.565 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3551, allocations: 0 / 0.565 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002446/0.3554, allocations: 43.89 kB / 0.565 GB, free: 496 kB / 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.0006449/0.356, allocations: 270.9 kB / 0.5653 GB, free: 280 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001284/0.3561, allocations: 118.8 kB / 0.5654 GB, free: 136 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3561, allocations: 0 / 0.5654 GB, free: 136 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.045e-05/0.3562, allocations: 85.17 kB / 0.5655 GB, free: 32 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.3563, allocations: 4 kB / 0.5655 GB, free: 28 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002135/0.3565, allocations: 114.7 kB / 0.5656 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.615e-05/0.3566, allocations: 51.36 kB / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.509e-06/0.3566, allocations: 0 / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.193e-05/0.3566, allocations: 11.44 kB / 0.5657 GB, free: 15.8 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3566, allocations: 0 / 0.5657 GB, free: 15.8 MB / 414.1 MB Notification: Performance of Templates: time 0.004123/0.3607, allocations: 0.9808 MB / 0.5666 GB, free: 14.82 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.932262444999651]