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.001497/0.001497, allocations: 118.9 kB / 17.79 MB, free: 5.285 MB / 14.72 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.001622/0.001622, allocations: 199.3 kB / 20.74 MB, free: 2.344 MB / 14.72 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.585/1.585, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 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.2475/0.2475, allocations: 46.92 MB / 357.1 MB, free: 10.31 MB / 286.1 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 0.002074/0.002074, allocations: 63.91 kB / 0.4914 GB, free: 7.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1455, allocations: 65.99 MB / 0.5558 GB, free: 5.371 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001741/0.1472, allocations: 486.8 kB / 0.5563 GB, free: 4.895 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009573/0.1482, allocations: 303.7 kB / 0.5566 GB, free: 4.598 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.69e-05/0.1482, allocations: 8 kB / 0.5566 GB, free: 4.59 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.137e-05/0.1482, allocations: 0 / 0.5566 GB, free: 4.59 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.841e-06/0.1482, allocations: 0 / 0.5566 GB, free: 4.59 MB / 414.1 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.0008765/0.1491, allocations: 89.69 kB / 0.5567 GB, free: 4.504 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.985e-05/0.1492, allocations: 0 / 0.5567 GB, free: 4.504 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.974e-05/0.1492, allocations: 7.984 kB / 0.5567 GB, free: 4.496 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.754e-05/0.1492, allocations: 4 kB / 0.5567 GB, free: 4.492 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.404e-05/0.1493, allocations: 3.984 kB / 0.5567 GB, free: 4.488 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.4e-06/0.1493, allocations: 0 / 0.5567 GB, free: 4.488 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002204/0.1495, allocations: 107.8 kB / 0.5568 GB, free: 4.383 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.06e-05/0.1495, allocations: 8 kB / 0.5568 GB, free: 4.375 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.144e-05/0.1495, allocations: 4 kB / 0.5568 GB, free: 4.371 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001818/0.1497, allocations: 79.75 kB / 0.5569 GB, free: 4.293 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1497, allocations: 4 kB / 0.5569 GB, free: 4.289 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1497, allocations: 0 / 0.5569 GB, free: 4.289 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.1497, allocations: 0 / 0.5569 GB, free: 4.289 MB / 414.1 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.0004169/0.1501, allocations: 361.1 kB / 0.5572 GB, free: 3.879 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.1502, allocations: 8.031 kB / 0.5572 GB, free: 3.871 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.146e-05/0.1502, allocations: 0.9375 kB / 0.5572 GB, free: 3.871 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.1503, allocations: 164.4 kB / 0.5574 GB, free: 3.672 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.1503, allocations: 4.375 kB / 0.5574 GB, free: 3.668 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.1503, allocations: 384 / 0.5574 GB, free: 3.668 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.819e-05/0.1504, allocations: 30.27 kB / 0.5574 GB, free: 3.633 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.1504, allocations: 192 / 0.5574 GB, free: 3.633 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.1505, allocations: 3.938 kB / 0.5574 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.1505, allocations: 0 / 0.5574 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.877e-05/0.1505, allocations: 11.88 kB / 0.5574 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001573/0.1506, allocations: 149.7 kB / 0.5576 GB, free: 3.422 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.381e-05/0.1507, allocations: 18.58 kB / 0.5576 GB, free: 3.395 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.805e-05/0.1507, allocations: 10.61 kB / 0.5576 GB, free: 3.383 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.915e-06/0.1507, allocations: 0 / 0.5576 GB, free: 3.383 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.039e-05/0.1508, allocations: 56.27 kB / 0.5577 GB, free: 3.312 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 3.276e-06/0.1508, allocations: 3.984 kB / 0.5577 GB, free: 3.309 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002133/0.151, allocations: 75.27 kB / 0.5577 GB, free: 3.223 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.071e-05/0.151, allocations: 77.11 kB / 0.5578 GB, free: 3.129 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.24e-05/0.1511, allocations: 97.94 kB / 0.5579 GB, free: 3.023 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.1511, allocations: 33.64 kB / 0.5579 GB, free: 2.984 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.862e-05/0.1512, allocations: 80.14 kB / 0.558 GB, free: 2.902 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/0.1512, allocations: 0 / 0.558 GB, free: 2.902 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.779e-05/0.1512, allocations: 9.719 kB / 0.558 GB, free: 2.887 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.1514, allocations: 318.8 kB / 0.5583 GB, free: 2.566 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.307e-06/0.1514, allocations: 0 / 0.5583 GB, free: 2.566 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.919e-06/0.1514, allocations: 0 / 0.5583 GB, free: 2.566 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.1515, allocations: 72.31 kB / 0.5584 GB, free: 2.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1515, allocations: 3.938 kB / 0.5584 GB, free: 2.477 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.878e-05/0.1516, allocations: 59.41 kB / 0.5585 GB, free: 2.406 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.686e-05/0.1516, allocations: 35.89 kB / 0.5585 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.1516, allocations: 0 / 0.5585 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.1517, allocations: 3.938 kB / 0.5585 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.905e-06/0.1517, allocations: 3.984 kB / 0.5585 GB, free: 2.359 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.1517, allocations: 0 / 0.5585 GB, free: 2.359 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.501e-05/0.1517, allocations: 4 kB / 0.5585 GB, free: 2.355 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.1517, allocations: 4.031 kB / 0.5585 GB, free: 2.352 MB / 414.1 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.0001428/0.1518, allocations: 135.5 kB / 0.5586 GB, free: 2.203 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.03e-05/0.1518, allocations: 4 kB / 0.5586 GB, free: 2.199 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.247e-06/0.1518, allocations: 7.062 kB / 0.5586 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.61e-07/0.1518, allocations: 0 / 0.5586 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.1518, allocations: 0 / 0.5586 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.1518, allocations: 0 / 0.5586 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.152, allocations: 149.6 kB / 0.5588 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.152, allocations: 4 kB / 0.5588 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.152, allocations: 4 kB / 0.5588 GB, free: 1.992 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.152, allocations: 3.938 kB / 0.5588 GB, free: 1.988 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.152, allocations: 3.938 kB / 0.5588 GB, free: 1.984 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.152, allocations: 0 / 0.5588 GB, free: 1.984 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.152, allocations: 3.938 kB / 0.5588 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001103/0.1521, allocations: 90.83 kB / 0.5589 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.02e-05/0.1521, allocations: 77.11 kB / 0.559 GB, free: 1.773 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.1522, allocations: 3.938 kB / 0.559 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.127e-05/0.1522, allocations: 8.031 kB / 0.559 GB, free: 1.762 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.86e-05/0.1522, allocations: 4 kB / 0.559 GB, free: 1.758 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.1522, allocations: 0 / 0.559 GB, free: 1.758 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.646e-05/0.1522, allocations: 75.28 kB / 0.5591 GB, free: 1.684 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1522, allocations: 0 / 0.5591 GB, free: 1.684 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002429/0.1525, allocations: 31.92 kB / 0.5591 GB, free: 1.652 MB / 414.1 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.0007619/0.1532, allocations: 265 kB / 0.5593 GB, free: 1.434 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000206/0.1534, allocations: 63.34 kB / 0.5594 GB, free: 1.359 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1534, allocations: 0 / 0.5594 GB, free: 1.359 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.803e-05/0.1535, allocations: 51.41 kB / 0.5594 GB, free: 1.297 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001359/0.1536, allocations: 6.391 kB / 0.5595 GB, free: 1.293 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001905/0.1538, allocations: 89.17 kB / 0.5595 GB, free: 1.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003281/0.1541, allocations: 0.669 MB / 0.5602 GB, free: 496 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.12e-06/0.1541, allocations: 0 / 0.5602 GB, free: 496 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.176e-05/0.1542, allocations: 11.38 kB / 0.5602 GB, free: 484 kB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1542, allocations: 0 / 0.5602 GB, free: 484 kB / 414.1 MB Notification: Performance of Templates: time 0.004071/0.1582, allocations: 0.9726 MB / 0.5612 GB, free: 15.5 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] 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.221793740987778]