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.001287/0.001287, 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.001157/0.001157, allocations: 171.9 kB / 24.92 MB, free: 8.723 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.001/1.001, allocations: 177.1 MB / 205.3 MB, free: 5.105 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.2725/0.2725, allocations: 32.8 MB / 294.6 MB, free: 1.199 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.172e-06/1.172e-06, allocations: 0 / 323.2 MB, free: 9.707 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.146e-05/2.263e-05, allocations: 2.969 kB / 323.2 MB, free: 9.703 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001114/0.001137, allocations: 0.5266 MB / 323.8 MB, free: 9.176 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005496/0.001686, allocations: 306.9 kB / 324.1 MB, free: 8.875 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.014e-05/0.001706, allocations: 4 kB / 324.1 MB, free: 8.871 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.674e-05/0.001723, allocations: 0 / 324.1 MB, free: 8.871 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.911e-06/0.001729, allocations: 0 / 324.1 MB, free: 8.871 MB / 298.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.00061/0.002339, allocations: 105.4 kB / 324.2 MB, free: 8.781 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.459e-05/0.002394, allocations: 12.55 kB / 324.2 MB, free: 8.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.012e-05/0.002434, allocations: 7.984 kB / 324.2 MB, free: 8.762 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.836e-05/0.002462, allocations: 0 / 324.2 MB, free: 8.762 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.646e-05/0.002479, allocations: 0 / 324.2 MB, free: 8.762 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.412e-06/0.002485, allocations: 0 / 324.2 MB, free: 8.762 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.002661, allocations: 111.8 kB / 324.3 MB, free: 8.652 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.921e-06/0.002667, allocations: 0 / 324.3 MB, free: 8.652 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.066e-05/0.002688, allocations: 8 kB / 324.3 MB, free: 8.645 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000154/0.002842, allocations: 111.6 kB / 324.4 MB, free: 8.535 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.503e-06/0.002844, allocations: 0 / 324.4 MB, free: 8.535 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.002845, allocations: 0 / 324.4 MB, free: 8.535 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.506e-06/0.002848, allocations: 0 / 324.4 MB, free: 8.535 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.0002219/0.00307, allocations: 262.8 kB / 324.7 MB, free: 8.246 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.96e-05/0.0031, allocations: 12.03 kB / 324.7 MB, free: 8.234 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.13e-05/0.003121, allocations: 0.9375 kB / 324.7 MB, free: 8.234 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.422e-05/0.003175, allocations: 101.8 kB / 324.8 MB, free: 8.109 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.003185, allocations: 4.375 kB / 324.8 MB, free: 8.105 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.352e-06/0.003192, allocations: 4.359 kB / 324.8 MB, free: 8.102 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.553e-05/0.003257, allocations: 63.97 kB / 324.9 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.003266, allocations: 8.125 kB / 324.9 MB, free: 8.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.695e-06/0.003274, allocations: 384 / 324.9 MB, free: 8.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.003281, allocations: 384 / 324.9 MB, free: 8.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.07e-05/0.003301, allocations: 29.64 kB / 324.9 MB, free: 7.984 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.706e-05/0.003358, allocations: 60.98 kB / 325 MB, free: 7.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.805e-05/0.003396, allocations: 44.27 kB / 325 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.448e-05/0.003411, allocations: 34.66 kB / 325 MB, free: 7.809 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-06/0.003414, allocations: 0 / 325 MB, free: 7.809 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.003444, allocations: 64.27 kB / 325.1 MB, free: 7.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.683e-06/0.003446, allocations: 3.984 kB / 325.1 MB, free: 7.727 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001054/0.003551, allocations: 118.7 kB / 325.2 MB, free: 7.586 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.017e-05/0.003581, allocations: 77.11 kB / 325.3 MB, free: 7.492 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.106e-05/0.003622, allocations: 93.84 kB / 325.4 MB, free: 7.391 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.227e-06/0.003632, allocations: 29.7 kB / 325.4 MB, free: 7.355 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.008e-05/0.003652, allocations: 80.14 kB / 325.5 MB, free: 7.273 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.462e-05/0.003666, allocations: 1.203 kB / 325.5 MB, free: 7.273 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.895e-05/0.003685, allocations: 9.719 kB / 325.5 MB, free: 7.258 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.304e-05/0.003758, allocations: 318.8 kB / 325.8 MB, free: 6.938 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.417e-05/0.003773, allocations: 25.83 kB / 325.8 MB, free: 6.906 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.148e-05/0.003784, allocations: 29.7 kB / 325.9 MB, free: 6.871 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.463e-05/0.003829, allocations: 72.19 kB / 325.9 MB, free: 6.785 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.00383, allocations: 0 / 325.9 MB, free: 6.785 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.741e-05/0.003878, allocations: 85.11 kB / 326 MB, free: 6.684 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.003902, allocations: 33.69 kB / 326.1 MB, free: 6.645 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.003907, allocations: 0 / 326.1 MB, free: 6.645 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.776e-06/0.003916, allocations: 0 / 326.1 MB, free: 6.645 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.382e-06/0.003917, allocations: 0 / 326.1 MB, free: 6.645 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.244e-06/0.003919, allocations: 4 kB / 326.1 MB, free: 6.641 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.003e-05/0.003929, allocations: 4.094 kB / 326.1 MB, free: 6.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.003934, allocations: 0 / 326.1 MB, free: 6.637 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 5.914e-05/0.003993, allocations: 139.5 kB / 326.2 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.958e-06/0.003997, allocations: 0 / 326.2 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.194e-06/0.004005, allocations: 3 kB / 326.2 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.004006, allocations: 0 / 326.2 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-06/0.004007, allocations: 0 / 326.2 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.00401, allocations: 3.984 kB / 326.2 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.094e-05/0.004051, allocations: 65.84 kB / 326.3 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3e-07/0.004051, allocations: 0 / 326.3 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.71e-07/0.004051, allocations: 7.938 kB / 326.3 MB, free: 6.391 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-07/0.004052, allocations: 0 / 326.3 MB, free: 6.391 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.828e-06/0.004056, allocations: 3.938 kB / 326.3 MB, free: 6.387 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.61e-07/0.004056, allocations: 4 kB / 326.3 MB, free: 6.383 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.004057, allocations: 0 / 326.3 MB, free: 6.383 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.382e-05/0.004121, allocations: 116.5 kB / 326.4 MB, free: 6.238 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.657e-06/0.004124, allocations: 352 / 326.4 MB, free: 6.238 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.064e-05/0.004135, allocations: 8 kB / 326.4 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.91e-06/0.00414, allocations: 4 kB / 326.4 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.554e-06/0.004147, allocations: 0 / 326.4 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-06/0.004149, allocations: 32 / 326.4 MB, free: 6.227 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.422e-06/0.004155, allocations: 8.859 kB / 326.4 MB, free: 6.215 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004155, allocations: 0 / 326.4 MB, free: 6.215 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001352/0.00429, allocations: 31.92 kB / 326.4 MB, free: 6.184 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.0005349/0.004825, allocations: 308.4 kB / 326.7 MB, free: 5.984 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.565e-05/0.004921, allocations: 123.6 kB / 326.9 MB, free: 5.836 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.004924, allocations: 4 kB / 326.9 MB, free: 5.832 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.997e-05/0.004954, allocations: 85.97 kB / 327 MB, free: 5.727 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.896e-05/0.005003, allocations: 3.938 kB / 327 MB, free: 5.723 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001455/0.005149, allocations: 112.6 kB / 327.1 MB, free: 5.578 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.901e-05/0.005178, allocations: 55.36 kB / 327.1 MB, free: 5.504 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.975e-06/0.005186, allocations: 0 / 327.1 MB, free: 5.504 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.161e-05/0.005227, allocations: 51.5 kB / 327.2 MB, free: 5.453 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.005228, allocations: 4 kB / 327.2 MB, free: 5.449 MB / 298.7 MB Notification: Performance of Templates: time 0.002676/0.007904, allocations: 1.167 MB / 328.3 MB, free: 4.289 MB / 298.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 -s gbode -gbm=radauIIA3 -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: 2.819083853624761]