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.0009458/0.0009458, allocations: 79.59 kB / 21.18 MB, free: 3.391 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.0009629/0.0009629, allocations: 165 kB / 24.56 MB, free: 16 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 0.9702/0.9702, allocations: 177.1 MB / 205 MB, free: 5.305 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.2438/0.2438, allocations: 32.81 MB / 294.3 MB, free: 1.238 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.492e-06/1.492e-06, allocations: 0 / 376 MB, free: 4.727 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.722e-05/2.871e-05, allocations: 8.781 kB / 376 MB, free: 4.719 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00118/0.001209, allocations: 484.9 kB / 376.5 MB, free: 4.242 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00058/0.001789, allocations: 315.2 kB / 376.8 MB, free: 3.934 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.702e-05/0.001806, allocations: 4 kB / 376.8 MB, free: 3.93 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.63e-05/0.001822, allocations: 0 / 376.8 MB, free: 3.93 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.651e-06/0.001828, allocations: 0 / 376.8 MB, free: 3.93 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.0006441/0.002472, allocations: 112 kB / 376.9 MB, free: 3.828 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.856e-05/0.002521, allocations: 0 / 376.9 MB, free: 3.828 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.661e-05/0.002557, allocations: 7.984 kB / 376.9 MB, free: 3.82 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.328e-05/0.002581, allocations: 0 / 376.9 MB, free: 3.82 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.851e-05/0.002599, allocations: 4 kB / 376.9 MB, free: 3.816 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.513e-06/0.002606, allocations: 0 / 376.9 MB, free: 3.816 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001562/0.002762, allocations: 115.8 kB / 377 MB, free: 3.703 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.635e-06/0.002769, allocations: 4 kB / 377 MB, free: 3.699 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.744e-05/0.002787, allocations: 0 / 377 MB, free: 3.699 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001677/0.002955, allocations: 103.7 kB / 377.1 MB, free: 3.598 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.002957, allocations: 0 / 377.1 MB, free: 3.598 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.002958, allocations: 0 / 377.1 MB, free: 3.598 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.002962, allocations: 0 / 377.1 MB, free: 3.598 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.0002932/0.003256, allocations: 389.9 kB / 377.5 MB, free: 3.172 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.003289, allocations: 11.97 kB / 377.5 MB, free: 3.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.418e-05/0.003324, allocations: 0.9375 kB / 377.5 MB, free: 3.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.547e-05/0.003379, allocations: 112.6 kB / 377.6 MB, free: 3.023 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.889e-06/0.003389, allocations: 384 / 377.6 MB, free: 3.023 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.484e-06/0.003396, allocations: 8.312 kB / 377.6 MB, free: 3.016 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.927e-05/0.003486, allocations: 59.97 kB / 377.7 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.942e-06/0.003492, allocations: 192 / 377.7 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.003499, allocations: 384 / 377.7 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.003505, allocations: 384 / 377.7 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.777e-05/0.003523, allocations: 33.64 kB / 377.7 MB, free: 2.906 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.988e-05/0.003602, allocations: 116.6 kB / 377.8 MB, free: 2.758 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.509e-05/0.003668, allocations: 52.8 kB / 377.9 MB, free: 2.688 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.763e-05/0.003685, allocations: 37.33 kB / 377.9 MB, free: 2.641 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-06/0.003689, allocations: 0 / 377.9 MB, free: 2.641 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.003718, allocations: 67.16 kB / 378 MB, free: 2.559 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 6.91e-07/0.003719, allocations: 0 / 378 MB, free: 2.559 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001475/0.003867, allocations: 118.8 kB / 378.1 MB, free: 2.418 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.003901, allocations: 77.11 kB / 378.2 MB, free: 2.324 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.625e-05/0.003967, allocations: 142.2 kB / 378.3 MB, free: 2.172 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.214e-06/0.003974, allocations: 25.7 kB / 378.4 MB, free: 2.141 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.571e-05/0.004, allocations: 130.9 kB / 378.5 MB, free: 2.008 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.004014, allocations: 352 / 378.5 MB, free: 2.008 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.003e-05/0.004034, allocations: 15.38 kB / 378.5 MB, free: 1.984 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.932e-05/0.004134, allocations: 0.4961 MB / 379 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.794e-05/0.004152, allocations: 29.77 kB / 379 MB, free: 1.441 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.339e-05/0.004165, allocations: 29.7 kB / 379 MB, free: 1.406 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.137e-05/0.004206, allocations: 63.09 kB / 379.1 MB, free: 1.328 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.004208, allocations: 0 / 379.1 MB, free: 1.328 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0005693/0.004778, allocations: 93.05 kB / 379.2 MB, free: 1.219 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.004805, allocations: 33.7 kB / 379.2 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.004809, allocations: 4 kB / 379.2 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.004822, allocations: 0 / 379.2 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.446e-06/0.004826, allocations: 0 / 379.2 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.004831, allocations: 0 / 379.2 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.17e-05/0.004843, allocations: 8.031 kB / 379.2 MB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.004849, allocations: 3.938 kB / 379.2 MB, free: 1.164 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 6.913e-05/0.004918, allocations: 186.2 kB / 379.4 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.28e-06/0.004924, allocations: 3.984 kB / 379.4 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.875e-06/0.004931, allocations: 3 kB / 379.4 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.004933, allocations: 4 kB / 379.4 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.004936, allocations: 0 / 379.4 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.00494, allocations: 0 / 379.4 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.405e-05/0.004994, allocations: 108.6 kB / 379.5 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.7e-07/0.004994, allocations: 0 / 379.5 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.283e-06/0.004995, allocations: 8 kB / 379.6 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.41e-07/0.004996, allocations: 4 kB / 379.6 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.052e-06/0.005002, allocations: 0 / 379.6 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.3e-07/0.005002, allocations: 0 / 379.6 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.005004, allocations: 3.984 kB / 379.6 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.877e-05/0.005083, allocations: 131.8 kB / 379.7 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.059e-06/0.005088, allocations: 4 kB / 379.7 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.0051, allocations: 3.984 kB / 379.7 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.208e-06/0.005105, allocations: 3.938 kB / 379.7 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.187e-05/0.005117, allocations: 0 / 379.7 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-06/0.005118, allocations: 4.031 kB / 379.7 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.855e-05/0.005147, allocations: 123.2 kB / 379.8 MB, free: 0.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005147, allocations: 0 / 379.8 MB, free: 0.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000158/0.005305, allocations: 31.94 kB / 379.9 MB, free: 480 kB / 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.0004908/0.005795, allocations: 293.9 kB / 380.1 MB, free: 244 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.143e-05/0.005887, allocations: 122.5 kB / 380.3 MB, free: 92 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.005889, allocations: 3.938 kB / 380.3 MB, free: 88 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.832e-05/0.005927, allocations: 88.8 kB / 380.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.773e-05/0.006015, allocations: 2.656 kB / 380.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000175/0.00619, allocations: 117.6 kB / 380.5 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.133e-05/0.006221, allocations: 55.3 kB / 380.5 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.719e-06/0.006226, allocations: 4 kB / 380.5 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.223e-05/0.006238, allocations: 12.62 kB / 380.5 MB, free: 15.73 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.006239, allocations: 0 / 380.5 MB, free: 15.73 MB / 362.7 MB Notification: Performance of Templates: time 0.002772/0.00901, allocations: 1.151 MB / 381.7 MB, free: 14.59 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.042531174607575]