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.001042/0.001042, allocations: 75.75 kB / 21.69 MB, free: 2.852 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.001078/0.001078, allocations: 162.2 kB / 24.99 MB, free: 8.746 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 0.9501/0.9501, allocations: 177.1 MB / 205.3 MB, free: 5.605 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.2656/0.2656, allocations: 34.26 MB / 296 MB, free: 0.7812 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.533e-06/1.533e-06, allocations: 0 / 378 MB, free: 3.016 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.787e-05/1.941e-05, allocations: 2.312 kB / 378 MB, free: 3.012 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0009453/0.0009647, allocations: 0.4962 MB / 378.5 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005596/0.001524, allocations: 299.2 kB / 378.8 MB, free: 2.223 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.934e-05/0.001544, allocations: 0 / 378.8 MB, free: 2.223 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.324e-05/0.001557, allocations: 0 / 378.8 MB, free: 2.223 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.38e-06/0.001562, allocations: 4 kB / 378.8 MB, free: 2.219 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.0006387/0.002201, allocations: 109.5 kB / 378.9 MB, free: 2.117 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.549e-05/0.002246, allocations: 4 kB / 378.9 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.148e-05/0.002278, allocations: 3.984 kB / 378.9 MB, free: 2.109 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.503e-05/0.002303, allocations: 0 / 378.9 MB, free: 2.109 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.754e-05/0.00232, allocations: 4 kB / 378.9 MB, free: 2.105 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.154e-06/0.002328, allocations: 4 kB / 378.9 MB, free: 2.102 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001472/0.002475, allocations: 107.8 kB / 379 MB, free: 1.996 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.862e-06/0.002482, allocations: 0 / 379 MB, free: 1.996 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.611e-05/0.002498, allocations: 4 kB / 379 MB, free: 1.992 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.002658, allocations: 103.7 kB / 379.1 MB, free: 1.891 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.00266, allocations: 0 / 379.1 MB, free: 1.891 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.00266, allocations: 3.938 kB / 379.1 MB, free: 1.887 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.002664, allocations: 0 / 379.1 MB, free: 1.887 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.0002263/0.00289, allocations: 385.9 kB / 379.5 MB, free: 1.465 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.002923, allocations: 20.02 kB / 379.5 MB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.593e-05/0.002949, allocations: 0.9375 kB / 379.5 MB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.025e-05/0.002999, allocations: 104.6 kB / 379.6 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.193e-06/0.003007, allocations: 384 / 379.6 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.403e-06/0.003013, allocations: 4.375 kB / 379.6 MB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.981e-05/0.003083, allocations: 63.91 kB / 379.7 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.378e-06/0.003087, allocations: 192 / 379.7 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.33e-06/0.003092, allocations: 384 / 379.7 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.329e-06/0.003097, allocations: 4.375 kB / 379.7 MB, free: 1.234 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.717e-05/0.003114, allocations: 33.62 kB / 379.7 MB, free: 1.195 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.613e-05/0.00318, allocations: 112.6 kB / 379.8 MB, free: 1.051 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.875e-05/0.003219, allocations: 52.77 kB / 379.9 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.886e-05/0.003238, allocations: 37.48 kB / 379.9 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-06/0.003241, allocations: 0 / 379.9 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.003275, allocations: 67.03 kB / 380 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.003276, allocations: 0 / 380 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001412/0.003417, allocations: 114.8 kB / 380.1 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.139e-05/0.003449, allocations: 81.11 kB / 380.2 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.088e-05/0.00349, allocations: 142.2 kB / 380.3 MB, free: 476 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.183e-06/0.003497, allocations: 25.7 kB / 380.3 MB, free: 444 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.497e-05/0.003522, allocations: 131 kB / 380.5 MB, free: 308 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.222e-05/0.003534, allocations: 4.344 kB / 380.5 MB, free: 304 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.122e-05/0.003555, allocations: 27.3 kB / 380.5 MB, free: 268 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.00367, allocations: 496.1 kB / 381 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.045e-05/0.003701, allocations: 25.7 kB / 381 MB, free: 15.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.274e-05/0.003714, allocations: 33.64 kB / 381 MB, free: 15.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.904e-05/0.003753, allocations: 63.09 kB / 381.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.003755, allocations: 0 / 381.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.136e-05/0.003806, allocations: 97.05 kB / 381.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.003826, allocations: 33.8 kB / 381.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.00383, allocations: 4 kB / 381.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.003841, allocations: 0 / 381.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.003842, allocations: 0 / 381.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.003847, allocations: 0 / 381.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.05e-05/0.003858, allocations: 7.938 kB / 381.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-06/0.003861, allocations: 0 / 381.2 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 6.186e-05/0.003923, allocations: 182.3 kB / 381.4 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.311e-06/0.003929, allocations: 7.938 kB / 381.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.154e-06/0.003937, allocations: 3 kB / 381.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.003938, allocations: 0 / 381.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.003941, allocations: 4 kB / 381.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.003943, allocations: 0 / 381.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.575e-05/0.003999, allocations: 116.6 kB / 381.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-07/0.004, allocations: 0 / 381.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.004, allocations: 0 / 381.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.41e-07/0.004001, allocations: 0 / 381.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.004007, allocations: 0 / 381.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.004008, allocations: 3.984 kB / 381.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.004009, allocations: 0 / 381.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.292e-05/0.004082, allocations: 131.8 kB / 381.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.24e-06/0.004087, allocations: 12.02 kB / 381.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.116e-05/0.004098, allocations: 0 / 381.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.31e-06/0.004104, allocations: 3.984 kB / 381.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.098e-05/0.004115, allocations: 4 kB / 381.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-06/0.004116, allocations: 0 / 381.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.178e-05/0.004178, allocations: 123.1 kB / 381.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004178, allocations: 0 / 381.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001578/0.004336, allocations: 31.88 kB / 381.9 MB, free: 14.76 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.0004291/0.004765, allocations: 300 kB / 382.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.9e-05/0.004854, allocations: 118.5 kB / 382.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.004855, allocations: 0 / 382.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.043e-05/0.004886, allocations: 92.8 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.617e-05/0.004982, allocations: 4 kB / 382.4 MB, free: 14.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001577/0.00514, allocations: 121.8 kB / 382.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.831e-05/0.005168, allocations: 51.36 kB / 382.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.36e-06/0.005173, allocations: 0 / 382.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.07e-05/0.005184, allocations: 8.5 kB / 382.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of SimCode: time 1.143e-06/0.005185, allocations: 0 / 382.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of Templates: time 0.002734/0.00792, allocations: 1.027 MB / 383.6 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","",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.901306039886549]