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.001259/0.001259, allocations: 82.67 kB / 20.68 MB, free: 1.023 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.001338/0.001338, allocations: 163.3 kB / 23.95 MB, free: 4.156 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.421/1.421, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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.2022/0.2022, allocations: 32.82 MB / 293.5 MB, free: 28 kB / 270.1 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.573e-06/1.573e-06, allocations: 0 / 440.1 MB, free: 8.191 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.597e-05/2.754e-05, allocations: 6.219 kB / 440.1 MB, free: 8.184 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001333/0.001361, allocations: 496.7 kB / 440.5 MB, free: 7.703 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000721/0.002081, allocations: 303 kB / 440.8 MB, free: 7.406 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.207e-05/0.002104, allocations: 0 / 440.8 MB, free: 7.406 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.452e-05/0.002118, allocations: 0 / 440.8 MB, free: 7.406 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.799e-06/0.002123, allocations: 0 / 440.8 MB, free: 7.406 MB / 366.1 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.0007426/0.002866, allocations: 95.66 kB / 440.9 MB, free: 7.312 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.218e-05/0.002908, allocations: 0 / 440.9 MB, free: 7.312 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.113e-05/0.002939, allocations: 7.984 kB / 440.9 MB, free: 7.305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.295e-05/0.002962, allocations: 7.984 kB / 441 MB, free: 7.297 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.623e-05/0.002978, allocations: 3.938 kB / 441 MB, free: 7.293 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.792e-06/0.002985, allocations: 0 / 441 MB, free: 7.293 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002007/0.003185, allocations: 107.8 kB / 441.1 MB, free: 7.188 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.582e-06/0.003192, allocations: 0 / 441.1 MB, free: 7.188 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.769e-05/0.00321, allocations: 0 / 441.1 MB, free: 7.188 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002288/0.003439, allocations: 111.7 kB / 441.2 MB, free: 7.078 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.00344, allocations: 0 / 441.2 MB, free: 7.078 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.81e-07/0.003441, allocations: 3.938 kB / 441.2 MB, free: 7.074 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.003448, allocations: 0 / 441.2 MB, free: 7.074 MB / 366.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.000375/0.003823, allocations: 283.9 kB / 441.5 MB, free: 6.758 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.003855, allocations: 12.03 kB / 441.5 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.32e-05/0.003878, allocations: 0.9375 kB / 441.5 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.06e-05/0.003969, allocations: 113.8 kB / 441.6 MB, free: 6.609 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.945e-06/0.003977, allocations: 4.312 kB / 441.6 MB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.003988, allocations: 384 / 441.6 MB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001037/0.004091, allocations: 55.97 kB / 441.6 MB, free: 6.539 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.004099, allocations: 192 / 441.6 MB, free: 6.539 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-06/0.004106, allocations: 384 / 441.6 MB, free: 6.539 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.004109, allocations: 384 / 441.6 MB, free: 6.539 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.206e-05/0.004151, allocations: 33.64 kB / 441.7 MB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000109/0.00426, allocations: 97.31 kB / 441.8 MB, free: 6.375 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.841e-05/0.004319, allocations: 52.25 kB / 441.8 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.665e-05/0.004355, allocations: 34.56 kB / 441.8 MB, free: 6.266 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.595e-06/0.004363, allocations: 0 / 441.8 MB, free: 6.266 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.75e-05/0.004411, allocations: 64.31 kB / 441.9 MB, free: 6.188 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.004411, allocations: 0 / 441.9 MB, free: 6.188 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002165/0.004628, allocations: 118.7 kB / 442 MB, free: 6.047 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.575e-05/0.004684, allocations: 81.11 kB / 442.1 MB, free: 5.949 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.118e-05/0.004735, allocations: 89.86 kB / 442.2 MB, free: 5.852 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.00475, allocations: 25.7 kB / 442.2 MB, free: 5.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.653e-05/0.004797, allocations: 80.27 kB / 442.3 MB, free: 5.738 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.004818, allocations: 11.95 kB / 442.3 MB, free: 5.727 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.778e-05/0.004846, allocations: 9.719 kB / 442.3 MB, free: 5.711 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.004988, allocations: 318.8 kB / 442.6 MB, free: 5.391 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.776e-05/0.005016, allocations: 29.7 kB / 442.7 MB, free: 5.355 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.698e-05/0.005043, allocations: 29.7 kB / 442.7 MB, free: 5.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.168e-05/0.005095, allocations: 60.27 kB / 442.7 MB, free: 5.246 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.005096, allocations: 0 / 442.7 MB, free: 5.246 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.005e-05/0.005186, allocations: 93.03 kB / 442.8 MB, free: 5.137 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.005217, allocations: 29.7 kB / 442.9 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.005221, allocations: 4.094 kB / 442.9 MB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.005241, allocations: 4 kB / 442.9 MB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.02e-07/0.005242, allocations: 0 / 442.9 MB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.005246, allocations: 3.938 kB / 442.9 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.442e-05/0.00526, allocations: 3.938 kB / 442.9 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.005269, allocations: 4 kB / 442.9 MB, free: 5.082 MB / 366.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 8.769e-05/0.005357, allocations: 135.5 kB / 443 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.594e-06/0.005364, allocations: 0 / 443 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.117e-05/0.005375, allocations: 6.984 kB / 443 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.005376, allocations: 0 / 443 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.00538, allocations: 4 kB / 443 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.005382, allocations: 0 / 443 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.152e-05/0.005473, allocations: 105.2 kB / 443.1 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.005474, allocations: 0 / 443.1 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.005474, allocations: 0 / 443.1 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.005475, allocations: 3.938 kB / 443.1 MB, free: 4.785 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.005483, allocations: 4 kB / 443.1 MB, free: 4.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.005487, allocations: 4 kB / 443.1 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.005488, allocations: 0 / 443.1 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001284/0.005616, allocations: 124.4 kB / 443.3 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.045e-06/0.005619, allocations: 4.031 kB / 443.3 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.005632, allocations: 3.984 kB / 443.3 MB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.00564, allocations: 0 / 443.3 MB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.732e-05/0.005658, allocations: 4 kB / 443.3 MB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.00566, allocations: 0 / 443.3 MB, free: 4.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.454e-05/0.005695, allocations: 75.28 kB / 443.3 MB, free: 4.539 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.005695, allocations: 0 / 443.3 MB, free: 4.539 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002324/0.005927, allocations: 35.88 kB / 443.4 MB, free: 4.504 MB / 366.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.0006676/0.006595, allocations: 298.3 kB / 443.7 MB, free: 4.266 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001591/0.006754, allocations: 114.8 kB / 443.8 MB, free: 4.129 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.006756, allocations: 0 / 443.8 MB, free: 4.129 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.183e-05/0.006818, allocations: 81.11 kB / 443.9 MB, free: 4.031 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.006956, allocations: 0 / 443.9 MB, free: 4.031 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002201/0.007176, allocations: 106.6 kB / 444 MB, free: 3.895 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.525e-05/0.007231, allocations: 63.47 kB / 444 MB, free: 3.812 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.678e-06/0.007236, allocations: 0 / 444 MB, free: 3.812 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.365e-05/0.00725, allocations: 8.5 kB / 444 MB, free: 3.805 MB / 366.1 MB Notification: Performance of SimCode: time 4.1e-07/0.00725, allocations: 0 / 444 MB, free: 3.805 MB / 366.1 MB Notification: Performance of Templates: time 0.003945/0.01119, allocations: 0.9994 MB / 445 MB, free: 2.809 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 4.736369781196117]