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.002276/0.002276, allocations: 95.61 kB / 20.96 MB, free: 3.457 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.002843/0.002843, allocations: 161.3 kB / 24.27 MB, free: 152 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.634/1.634, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 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.36/0.36, allocations: 34.27 MB / 295.3 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 179] 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.733e-06/1.733e-06, allocations: 0 / 377.2 MB, free: 3.004 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.933e-05/4.107e-05, allocations: 2.312 kB / 377.2 MB, free: 3 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001924/0.001965, allocations: 497 kB / 377.7 MB, free: 2.512 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009479/0.002913, allocations: 303.2 kB / 378 MB, free: 2.215 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.624e-05/0.002939, allocations: 0 / 378 MB, free: 2.215 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.643e-05/0.002956, allocations: 0 / 378 MB, free: 2.215 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.47e-06/0.002961, allocations: 4 kB / 378 MB, free: 2.211 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.001114/0.004075, allocations: 103.3 kB / 378.1 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.289e-05/0.004148, allocations: 8 kB / 378.1 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.929e-05/0.004188, allocations: 0 / 378.1 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.607e-05/0.004224, allocations: 11.92 kB / 378.2 MB, free: 2.102 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.046e-05/0.004244, allocations: 0 / 378.2 MB, free: 2.102 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.223e-06/0.004251, allocations: 4 kB / 378.2 MB, free: 2.098 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002338/0.004485, allocations: 107.8 kB / 378.3 MB, free: 1.992 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.287e-06/0.004494, allocations: 0 / 378.3 MB, free: 1.992 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.799e-05/0.004522, allocations: 4 kB / 378.3 MB, free: 1.988 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.004796, allocations: 107.7 kB / 378.4 MB, free: 1.883 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.004801, allocations: 0 / 378.4 MB, free: 1.883 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.004802, allocations: 0 / 378.4 MB, free: 1.883 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.004808, allocations: 0 / 378.4 MB, free: 1.883 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.0004832/0.005291, allocations: 389.9 kB / 378.8 MB, free: 1.457 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.00534, allocations: 16.03 kB / 378.8 MB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.272e-05/0.005392, allocations: 0.9375 kB / 378.8 MB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.00552, allocations: 104.6 kB / 378.9 MB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.005535, allocations: 384 / 378.9 MB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.005548, allocations: 4.375 kB / 378.9 MB, free: 1.309 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.005664, allocations: 59.95 kB / 378.9 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.005671, allocations: 192 / 378.9 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.005686, allocations: 8.375 kB / 378.9 MB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.00569, allocations: 4.312 kB / 378.9 MB, free: 1.227 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.779e-05/0.005728, allocations: 29.64 kB / 379 MB, free: 1.191 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001532/0.005881, allocations: 112.6 kB / 379.1 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.428e-05/0.005965, allocations: 52.77 kB / 379.1 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.159e-05/0.006017, allocations: 37.48 kB / 379.2 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.048e-05/0.006027, allocations: 0 / 379.2 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.57e-05/0.006103, allocations: 67.08 kB / 379.2 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.006104, allocations: 0 / 379.2 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0003124/0.006416, allocations: 114.8 kB / 379.4 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.905e-05/0.006495, allocations: 89.03 kB / 379.4 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.21e-05/0.006587, allocations: 142.2 kB / 379.6 MB, free: 464 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.006607, allocations: 25.7 kB / 379.6 MB, free: 432 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.006707, allocations: 131 kB / 379.7 MB, free: 296 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.224e-05/0.006729, allocations: 7.938 kB / 379.7 MB, free: 288 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.134e-05/0.006771, allocations: 19.38 kB / 379.8 MB, free: 260 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003096/0.00708, allocations: 496.1 kB / 380.2 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.197e-05/0.007112, allocations: 25.7 kB / 380.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.203e-05/0.007134, allocations: 29.7 kB / 380.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.628e-05/0.007211, allocations: 75.02 kB / 380.4 MB, free: 15.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.007212, allocations: 0 / 380.4 MB, free: 15.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.874e-05/0.007311, allocations: 85.11 kB / 380.5 MB, free: 15.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.048e-05/0.007351, allocations: 29.8 kB / 380.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.007356, allocations: 4 kB / 380.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.007371, allocations: 0 / 380.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.007372, allocations: 4 kB / 380.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.007377, allocations: 0 / 380.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.394e-05/0.007401, allocations: 7.922 kB / 380.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.007409, allocations: 0 / 380.5 MB, free: 15.45 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 0.0001724/0.007581, allocations: 186.3 kB / 380.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.095e-05/0.007592, allocations: 3.953 kB / 380.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.367e-05/0.007606, allocations: 10.98 kB / 380.7 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.007607, allocations: 0 / 380.7 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.007613, allocations: 8 kB / 380.7 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.007615, allocations: 0 / 380.7 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.00773, allocations: 112.6 kB / 380.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.007731, allocations: 0 / 380.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.007731, allocations: 0 / 380.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.007732, allocations: 3.938 kB / 380.8 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.007743, allocations: 4 kB / 380.8 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.007744, allocations: 0 / 380.8 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.007745, allocations: 0 / 380.8 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001727/0.007918, allocations: 131.8 kB / 380.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.338e-06/0.007922, allocations: 4.031 kB / 381 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.007936, allocations: 4 kB / 381 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.386e-06/0.007945, allocations: 0 / 381 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.47e-05/0.00796, allocations: 3.938 kB / 381 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.007962, allocations: 0 / 381 MB, free: 14.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.164e-05/0.008024, allocations: 119.2 kB / 381.1 MB, free: 14.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.008024, allocations: 4 kB / 381.1 MB, free: 14.78 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002531/0.008277, allocations: 35.92 kB / 381.1 MB, free: 14.75 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.0009788/0.009256, allocations: 280.8 kB / 381.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001684/0.009424, allocations: 122.4 kB / 381.5 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.009426, allocations: 4 kB / 381.5 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.267e-05/0.009498, allocations: 88.8 kB / 381.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001305/0.009629, allocations: 3.984 kB / 381.6 MB, free: 14.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002578/0.009887, allocations: 121.8 kB / 381.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.932e-05/0.009946, allocations: 55.36 kB / 381.8 MB, free: 14.03 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.602e-06/0.009953, allocations: 0 / 381.8 MB, free: 14.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.506e-05/0.009968, allocations: 8.5 kB / 381.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.009968, allocations: 0 / 381.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of Templates: time 0.004374/0.01434, allocations: 1.028 MB / 382.8 MB, free: 13 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","/var/lib/jenkins/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: 5.070353713002987]