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.001164/0.001164, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.0009677/0.0009677, allocations: 161.4 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 1.057/1.057, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] 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.2674/0.2674, allocations: 34.25 MB / 295.7 MB, free: 0.7539 MB / 266.7 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 1.683e-06/1.683e-06, allocations: 0 / 378 MB, free: 2.691 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.103e-05/2.271e-05, allocations: 6.312 kB / 378 MB, free: 2.684 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001379/0.001401, allocations: 495.7 kB / 378.5 MB, free: 2.203 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006894/0.002091, allocations: 307.2 kB / 378.8 MB, free: 1.902 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.097e-05/0.002112, allocations: 3.938 kB / 378.8 MB, free: 1.898 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.295e-05/0.002135, allocations: 3.938 kB / 378.8 MB, free: 1.895 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.302e-06/0.002141, allocations: 0 / 378.8 MB, free: 1.895 MB / 346.7 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.0007854/0.002927, allocations: 107.6 kB / 378.9 MB, free: 1.797 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.503e-05/0.002982, allocations: 4 kB / 378.9 MB, free: 1.793 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.307e-05/0.003015, allocations: 7.984 kB / 378.9 MB, free: 1.785 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.777e-05/0.003042, allocations: 0 / 378.9 MB, free: 1.785 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.975e-05/0.003062, allocations: 0 / 378.9 MB, free: 1.785 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.985e-06/0.00307, allocations: 0 / 378.9 MB, free: 1.785 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/0.003233, allocations: 107.8 kB / 379 MB, free: 1.68 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.345e-06/0.003241, allocations: 0 / 379 MB, free: 1.68 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.776e-05/0.003259, allocations: 3.938 kB / 379 MB, free: 1.676 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001762/0.003435, allocations: 111.7 kB / 379.1 MB, free: 1.566 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.003437, allocations: 4 kB / 379.1 MB, free: 1.562 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.003438, allocations: 3.938 kB / 379.1 MB, free: 1.559 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.888e-06/0.003442, allocations: 4 kB / 379.1 MB, free: 1.555 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.0002963/0.003738, allocations: 389.9 kB / 379.5 MB, free: 1.129 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.003774, allocations: 8.031 kB / 379.5 MB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.253e-05/0.003807, allocations: 0.9375 kB / 379.5 MB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.851e-05/0.003865, allocations: 108.6 kB / 379.6 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.003876, allocations: 384 / 379.6 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.849e-06/0.003885, allocations: 384 / 379.6 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.174e-05/0.003977, allocations: 63.95 kB / 379.7 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.003986, allocations: 192 / 379.7 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.003995, allocations: 384 / 379.7 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.004002, allocations: 4.375 kB / 379.7 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.017e-05/0.004022, allocations: 33.64 kB / 379.7 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.209e-05/0.004114, allocations: 108.6 kB / 379.8 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.662e-05/0.004161, allocations: 64.67 kB / 379.9 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.176e-05/0.004183, allocations: 37.38 kB / 379.9 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.348e-06/0.004187, allocations: 0 / 379.9 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.859e-05/0.004226, allocations: 63.16 kB / 380 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 6.22e-07/0.004226, allocations: 0 / 380 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001741/0.0044, allocations: 118.7 kB / 380.1 MB, free: 392 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.004439, allocations: 81.23 kB / 380.2 MB, free: 292 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.435e-05/0.004484, allocations: 146.2 kB / 380.3 MB, free: 132 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.937e-06/0.004493, allocations: 25.7 kB / 380.4 MB, free: 100 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.385e-05/0.004536, allocations: 126.9 kB / 380.5 MB, free: 15.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.885e-05/0.004555, allocations: 4.344 kB / 380.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.291e-05/0.004578, allocations: 15.38 kB / 380.5 MB, free: 15.94 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.004695, allocations: 496.1 kB / 381 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.075e-05/0.004716, allocations: 29.7 kB / 381 MB, free: 15.41 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.244e-05/0.004728, allocations: 29.69 kB / 381.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.651e-05/0.004775, allocations: 67.09 kB / 381.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.004776, allocations: 4.062 kB / 381.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.665e-05/0.004843, allocations: 93 kB / 381.2 MB, free: 15.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.00487, allocations: 35.41 kB / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.004876, allocations: 0 / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.004893, allocations: 4 kB / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.372e-06/0.004899, allocations: 4 kB / 381.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.004905, allocations: 0 / 381.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.151e-05/0.004916, allocations: 3.938 kB / 381.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.681e-06/0.004922, allocations: 0 / 381.3 MB, free: 15.13 MB / 362.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 7.001e-05/0.004992, allocations: 186.3 kB / 381.4 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.198e-06/0.004996, allocations: 4.031 kB / 381.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.067e-05/0.005007, allocations: 3 kB / 381.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-06/0.005009, allocations: 4 kB / 381.5 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.005013, allocations: 0 / 381.5 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.005015, allocations: 0 / 381.5 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.047e-05/0.005076, allocations: 112.6 kB / 381.6 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.1e-07/0.005076, allocations: 0 / 381.6 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.01e-07/0.005076, allocations: 0 / 381.6 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.02e-07/0.005077, allocations: 0 / 381.6 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.005083, allocations: 4 kB / 381.6 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.005084, allocations: 3.938 kB / 381.6 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.005085, allocations: 4 kB / 381.6 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.049e-05/0.005176, allocations: 135.7 kB / 381.7 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.942e-06/0.005182, allocations: 3.984 kB / 381.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.005195, allocations: 4 kB / 381.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.11e-06/0.0052, allocations: 0 / 381.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.351e-05/0.005214, allocations: 0 / 381.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-06/0.005215, allocations: 0 / 381.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.371e-05/0.005249, allocations: 119.2 kB / 381.8 MB, free: 14.47 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005249, allocations: 4 kB / 381.8 MB, free: 14.47 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001604/0.005409, allocations: 35.92 kB / 381.9 MB, free: 14.43 MB / 362.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.0004706/0.00588, allocations: 286.1 kB / 382.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001142/0.005994, allocations: 122.5 kB / 382.3 MB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.624e-06/0.005995, allocations: 64 / 382.3 MB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.288e-05/0.006028, allocations: 100.7 kB / 382.4 MB, free: 13.94 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.18e-05/0.00612, allocations: 3.984 kB / 382.4 MB, free: 13.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001845/0.006305, allocations: 117.6 kB / 382.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.09e-05/0.006336, allocations: 51.36 kB / 382.5 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.773e-06/0.006342, allocations: 3.984 kB / 382.5 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.251e-05/0.006355, allocations: 12.5 kB / 382.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of SimCode: time 7.01e-07/0.006356, allocations: 0 / 382.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of Templates: time 0.002712/0.009068, allocations: 1.018 MB / 383.6 MB, free: 12.68 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.2246267069131136]