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.0009566/0.0009566, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001003/0.001003, allocations: 172.6 kB / 24.92 MB, free: 8.727 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 1.02/1.02, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.2745/0.2745, allocations: 34.27 MB / 296.1 MB, free: 0.7266 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.693e-06/1.693e-06, allocations: 0 / 325.3 MB, free: 7.676 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.585e-05/2.754e-05, allocations: 3.156 kB / 325.3 MB, free: 7.672 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.008046/0.008073, allocations: 0.5394 MB / 325.8 MB, free: 7.133 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007715/0.008845, allocations: 307 kB / 326.1 MB, free: 6.832 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.116e-05/0.008866, allocations: 0 / 326.1 MB, free: 6.832 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.473e-05/0.008881, allocations: 0 / 326.1 MB, free: 6.832 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.462e-06/0.008887, allocations: 0 / 326.1 MB, free: 6.832 MB / 298.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.0008808/0.009768, allocations: 116.3 kB / 326.2 MB, free: 6.734 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.289e-05/0.009821, allocations: 0.625 kB / 326.2 MB, free: 6.734 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.888e-05/0.00986, allocations: 3.984 kB / 326.2 MB, free: 6.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.226e-05/0.009892, allocations: 4 kB / 326.2 MB, free: 6.727 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.063e-05/0.009913, allocations: 3.938 kB / 326.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.744e-06/0.00992, allocations: 0 / 326.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002543/0.01017, allocations: 115.8 kB / 326.3 MB, free: 6.609 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.444e-06/0.01018, allocations: 0 / 326.3 MB, free: 6.609 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.355e-05/0.0102, allocations: 0 / 326.3 MB, free: 6.609 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003273/0.01347, allocations: 107.7 kB / 326.4 MB, free: 6.504 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.01347, allocations: 8 kB / 326.4 MB, free: 6.496 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.01348, allocations: 0 / 326.4 MB, free: 6.496 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.01348, allocations: 0 / 326.4 MB, free: 6.496 MB / 298.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.0002916/0.01377, allocations: 262.7 kB / 326.7 MB, free: 6.207 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.01381, allocations: 8.031 kB / 326.7 MB, free: 6.199 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.002e-05/0.01384, allocations: 4.938 kB / 326.7 MB, free: 6.195 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.54e-05/0.0139, allocations: 109.7 kB / 326.8 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.01392, allocations: 384 / 326.8 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.241e-06/0.01392, allocations: 384 / 326.8 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.037e-05/0.014, allocations: 63.95 kB / 326.9 MB, free: 5.988 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.01401, allocations: 192 / 326.9 MB, free: 5.988 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.611e-06/0.01402, allocations: 4.375 kB / 326.9 MB, free: 5.984 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.01402, allocations: 384 / 326.9 MB, free: 5.984 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.377e-05/0.01404, allocations: 33.64 kB / 326.9 MB, free: 5.945 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.554e-05/0.01412, allocations: 53.05 kB / 327 MB, free: 5.879 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.516e-05/0.01417, allocations: 52.25 kB / 327 MB, free: 5.812 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.075e-05/0.0142, allocations: 34.55 kB / 327.1 MB, free: 5.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.25e-06/0.0142, allocations: 4.062 kB / 327.1 MB, free: 5.766 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.01424, allocations: 56.27 kB / 327.1 MB, free: 5.695 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.01424, allocations: 0 / 327.1 MB, free: 5.695 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001364/0.01438, allocations: 114.8 kB / 327.2 MB, free: 5.559 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.01441, allocations: 81.09 kB / 327.3 MB, free: 5.461 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.863e-05/0.01445, allocations: 89.86 kB / 327.4 MB, free: 5.363 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.01446, allocations: 25.7 kB / 327.4 MB, free: 5.332 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.387e-05/0.01449, allocations: 84.08 kB / 327.5 MB, free: 5.246 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.616e-05/0.0145, allocations: 1.375 kB / 327.5 MB, free: 5.246 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.766e-05/0.01453, allocations: 13.72 kB / 327.5 MB, free: 5.227 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.084e-05/0.01462, allocations: 314.8 kB / 327.8 MB, free: 4.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.701e-05/0.01464, allocations: 29.7 kB / 327.9 MB, free: 4.875 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.723e-05/0.01466, allocations: 29.7 kB / 327.9 MB, free: 4.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.086e-05/0.01471, allocations: 72.42 kB / 328 MB, free: 4.754 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.01471, allocations: 0 / 328 MB, free: 4.754 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.934e-05/0.01478, allocations: 81.11 kB / 328 MB, free: 4.656 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.491e-05/0.01481, allocations: 33.7 kB / 328.1 MB, free: 4.617 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.01482, allocations: 0 / 328.1 MB, free: 4.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.01483, allocations: 0 / 328.1 MB, free: 4.617 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.429e-06/0.01483, allocations: 7.922 kB / 328.1 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.555e-06/0.01484, allocations: 3.938 kB / 328.1 MB, free: 4.605 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.556e-05/0.01485, allocations: 0 / 328.1 MB, free: 4.605 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.01486, allocations: 4 kB / 328.1 MB, free: 4.602 MB / 298.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.472e-05/0.01493, allocations: 139.5 kB / 328.2 MB, free: 4.449 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.043e-05/0.01494, allocations: 4 kB / 328.2 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.918e-06/0.01495, allocations: 3 kB / 328.2 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.01496, allocations: 3.984 kB / 328.2 MB, free: 4.441 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.01496, allocations: 4 kB / 328.2 MB, free: 4.438 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.01496, allocations: 0 / 328.2 MB, free: 4.438 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.964e-05/0.01502, allocations: 69.83 kB / 328.3 MB, free: 4.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.01502, allocations: 0 / 328.3 MB, free: 4.352 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.243e-06/0.01502, allocations: 0 / 328.3 MB, free: 4.352 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.01503, allocations: 0 / 328.3 MB, free: 4.352 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.448e-06/0.01503, allocations: 0 / 328.3 MB, free: 4.352 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.01503, allocations: 4 kB / 328.3 MB, free: 4.348 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.01503, allocations: 0 / 328.3 MB, free: 4.348 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.455e-05/0.01513, allocations: 124.4 kB / 328.4 MB, free: 4.195 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.93e-06/0.01513, allocations: 352 / 328.4 MB, free: 4.195 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.01515, allocations: 0 / 328.4 MB, free: 4.195 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.018e-05/0.01516, allocations: 0 / 328.4 MB, free: 4.195 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.799e-06/0.01517, allocations: 4 kB / 328.4 MB, free: 4.191 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-06/0.01517, allocations: 0 / 328.4 MB, free: 4.191 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.305e-06/0.01518, allocations: 4.859 kB / 328.4 MB, free: 4.184 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01518, allocations: 0 / 328.4 MB, free: 4.184 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002204/0.0154, allocations: 35.95 kB / 328.5 MB, free: 4.148 MB / 298.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.003761/0.01916, allocations: 304.5 kB / 328.8 MB, free: 3.949 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001095/0.01927, allocations: 119.7 kB / 328.9 MB, free: 3.805 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.01927, allocations: 8.062 kB / 328.9 MB, free: 3.797 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.894e-05/0.01931, allocations: 85.95 kB / 329 MB, free: 3.691 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.443e-05/0.01938, allocations: 7.938 kB / 329 MB, free: 3.684 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001864/0.01956, allocations: 116.5 kB / 329.1 MB, free: 3.535 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.304e-05/0.0196, allocations: 51.36 kB / 329.1 MB, free: 3.465 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.951e-06/0.0196, allocations: 0 / 329.1 MB, free: 3.465 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.639e-05/0.01965, allocations: 55.38 kB / 329.2 MB, free: 3.41 MB / 298.7 MB Notification: Performance of SimCode: time 1.212e-06/0.01965, allocations: 0 / 329.2 MB, free: 3.41 MB / 298.7 MB Notification: Performance of Templates: time 0.006912/0.02656, allocations: 1.159 MB / 330.4 MB, free: 2.258 MB / 298.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 -s gbode -gbm=radauIIA3 -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: 2.939055264927447]