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.001502/0.001502, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001398/0.001398, allocations: 168.7 kB / 24.91 MB, free: 9.199 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.015/1.015, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.2661/0.2661, allocations: 34.26 MB / 296.1 MB, free: 0.7188 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.403e-06/1.403e-06, allocations: 0 / 325.2 MB, free: 7.746 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.212e-05/1.353e-05, allocations: 2.312 kB / 325.2 MB, free: 7.742 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0008993/0.0009128, allocations: 498.1 kB / 325.7 MB, free: 7.254 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005023/0.001415, allocations: 314.9 kB / 326 MB, free: 6.945 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.946e-05/0.001435, allocations: 0 / 326 MB, free: 6.945 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.168e-05/0.001446, allocations: 0 / 326 MB, free: 6.945 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.41e-06/0.001452, allocations: 0 / 326 MB, free: 6.945 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.0005923/0.002044, allocations: 114.3 kB / 326.1 MB, free: 6.852 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.085e-05/0.002085, allocations: 4.625 kB / 326.1 MB, free: 6.848 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.959e-05/0.002114, allocations: 7.984 kB / 326.1 MB, free: 6.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.384e-05/0.002138, allocations: 4 kB / 326.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.658e-05/0.002155, allocations: 0 / 326.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.871e-06/0.002161, allocations: 0 / 326.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001529/0.002314, allocations: 115.8 kB / 326.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.235e-06/0.002322, allocations: 0 / 326.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.218e-05/0.002334, allocations: 0 / 326.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.002479, allocations: 104.2 kB / 326.3 MB, free: 6.621 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.002481, allocations: 4 kB / 326.4 MB, free: 6.617 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.002482, allocations: 0 / 326.4 MB, free: 6.617 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.925e-06/0.002485, allocations: 0 / 326.4 MB, free: 6.617 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.0001992/0.002684, allocations: 266.2 kB / 326.6 MB, free: 6.324 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.743e-05/0.002711, allocations: 8.031 kB / 326.6 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.269e-05/0.002734, allocations: 4.922 kB / 326.6 MB, free: 6.312 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.527e-05/0.002779, allocations: 105.8 kB / 326.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-06/0.002786, allocations: 384 / 326.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.524e-06/0.002794, allocations: 384 / 326.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.878e-05/0.002873, allocations: 63.95 kB / 326.8 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.929e-06/0.002878, allocations: 192 / 326.8 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.849e-06/0.002882, allocations: 4.312 kB / 326.8 MB, free: 6.105 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.002887, allocations: 384 / 326.8 MB, free: 6.105 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.597e-05/0.002902, allocations: 41.56 kB / 326.8 MB, free: 6.059 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 4.935e-05/0.002952, allocations: 57.05 kB / 326.9 MB, free: 5.988 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.952e-05/0.002991, allocations: 44.31 kB / 326.9 MB, free: 5.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.3e-05/0.003004, allocations: 30.56 kB / 327 MB, free: 5.891 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-06/0.003007, allocations: 0 / 327 MB, free: 5.891 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.003038, allocations: 64.33 kB / 327 MB, free: 5.812 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.32e-07/0.003038, allocations: 0 / 327 MB, free: 5.812 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.97e-05/0.003138, allocations: 114.7 kB / 327.1 MB, free: 5.676 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.00317, allocations: 81.11 kB / 327.2 MB, free: 5.578 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.943e-05/0.0032, allocations: 89.86 kB / 327.3 MB, free: 5.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.534e-06/0.003207, allocations: 29.83 kB / 327.3 MB, free: 5.445 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.852e-05/0.003226, allocations: 80.14 kB / 327.4 MB, free: 5.363 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.412e-05/0.00324, allocations: 1.375 kB / 327.4 MB, free: 5.363 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.881e-05/0.003259, allocations: 13.72 kB / 327.4 MB, free: 5.344 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.88e-05/0.003348, allocations: 318.8 kB / 327.7 MB, free: 5.023 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.083e-05/0.003358, allocations: 29.7 kB / 327.8 MB, free: 4.988 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.799e-06/0.003368, allocations: 25.7 kB / 327.8 MB, free: 4.957 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.452e-05/0.003403, allocations: 60.27 kB / 327.9 MB, free: 4.883 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.003404, allocations: 0 / 327.9 MB, free: 4.883 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.399e-05/0.003448, allocations: 93.12 kB / 327.9 MB, free: 4.773 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.606e-05/0.003484, allocations: 37.7 kB / 328 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.00349, allocations: 0 / 328 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.979e-06/0.0035, allocations: 0 / 328 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.495e-06/0.003503, allocations: 0 / 328 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.655e-06/0.003505, allocations: 0 / 328 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.344e-05/0.003519, allocations: 0 / 328 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.003525, allocations: 0 / 328 MB, free: 4.73 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 6.645e-05/0.003591, allocations: 143.5 kB / 328.1 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.254e-06/0.003598, allocations: 3.984 kB / 328.1 MB, free: 4.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.304e-06/0.003606, allocations: 10.98 kB / 328.1 MB, free: 4.562 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.003607, allocations: 4 kB / 328.1 MB, free: 4.559 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.003609, allocations: 0 / 328.1 MB, free: 4.559 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.073e-06/0.003611, allocations: 0 / 328.1 MB, free: 4.559 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.201e-05/0.003653, allocations: 65.84 kB / 328.2 MB, free: 4.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.003654, allocations: 3.938 kB / 328.2 MB, free: 4.473 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.71e-07/0.003654, allocations: 4 kB / 328.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.71e-07/0.003655, allocations: 0 / 328.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.496e-06/0.003658, allocations: 0 / 328.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.5e-07/0.003658, allocations: 0 / 328.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.00366, allocations: 3.938 kB / 328.2 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.839e-05/0.003728, allocations: 116.5 kB / 328.3 MB, free: 4.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.187e-06/0.003733, allocations: 8.344 kB / 328.3 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.003745, allocations: 3.984 kB / 328.3 MB, free: 4.309 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.408e-06/0.003749, allocations: 0 / 328.3 MB, free: 4.309 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-06/0.003757, allocations: 0 / 328.3 MB, free: 4.309 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-06/0.00376, allocations: 8 kB / 328.3 MB, free: 4.301 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.202e-06/0.003767, allocations: 4.859 kB / 328.4 MB, free: 4.293 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003767, allocations: 0 / 328.4 MB, free: 4.293 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001223/0.003889, allocations: 27.94 kB / 328.4 MB, free: 4.266 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.0004669/0.004356, allocations: 313.2 kB / 328.7 MB, free: 4.062 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.237e-05/0.004428, allocations: 115.6 kB / 328.8 MB, free: 3.922 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.00443, allocations: 0 / 328.8 MB, free: 3.922 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.722e-05/0.004457, allocations: 89.95 kB / 328.9 MB, free: 3.812 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 3.615e-05/0.004493, allocations: 12.06 kB / 328.9 MB, free: 3.801 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001278/0.004621, allocations: 112.6 kB / 329 MB, free: 3.656 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.268e-05/0.004644, allocations: 51.36 kB / 329.1 MB, free: 3.586 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.339e-06/0.004648, allocations: 0 / 329.1 MB, free: 3.586 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.118e-05/0.004679, allocations: 55.36 kB / 329.1 MB, free: 3.531 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.00468, allocations: 3.938 kB / 329.1 MB, free: 3.527 MB / 298.7 MB Notification: Performance of Templates: time 0.002263/0.006943, allocations: 1.156 MB / 330.3 MB, free: 2.371 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 -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.8903745501302183]