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.0008954/0.0008954, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.0009665/0.0009665, allocations: 161 kB / 24.56 MB, free: 12 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 0.9519/0.9519, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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.2512/0.2512, allocations: 32.8 MB / 294.3 MB, free: 1.285 MB / 266.7 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.744e-06/1.744e-06, allocations: 0 / 376 MB, free: 4.699 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.478e-05/2.652e-05, allocations: 2.312 kB / 376 MB, free: 4.695 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.004339/0.004366, allocations: 0.4892 MB / 376.5 MB, free: 4.203 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005217/0.004887, allocations: 303.2 kB / 376.8 MB, free: 3.906 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.856e-05/0.004916, allocations: 0 / 376.8 MB, free: 3.906 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.447e-05/0.00494, allocations: 0 / 376.8 MB, free: 3.906 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.33e-06/0.004946, allocations: 0 / 376.8 MB, free: 3.906 MB / 346.7 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.0007926/0.005738, allocations: 116.8 kB / 376.9 MB, free: 3.801 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.386e-05/0.005802, allocations: 3.984 kB / 376.9 MB, free: 3.797 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.397e-05/0.005846, allocations: 8 kB / 376.9 MB, free: 3.789 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.423e-05/0.00588, allocations: 0 / 376.9 MB, free: 3.789 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.97e-05/0.0059, allocations: 0 / 376.9 MB, free: 3.789 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.264e-06/0.005907, allocations: 0 / 376.9 MB, free: 3.789 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003272/0.006234, allocations: 111.8 kB / 377 MB, free: 3.68 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.076e-06/0.006243, allocations: 0 / 377 MB, free: 3.68 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.882e-05/0.006261, allocations: 0 / 377 MB, free: 3.68 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002053/0.006467, allocations: 115.7 kB / 377.1 MB, free: 3.566 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.00647, allocations: 0 / 377.1 MB, free: 3.566 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.006471, allocations: 0 / 377.1 MB, free: 3.566 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.006476, allocations: 0 / 377.1 MB, free: 3.566 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.0003141/0.00679, allocations: 385.9 kB / 377.5 MB, free: 3.145 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.996e-05/0.00683, allocations: 12.03 kB / 377.5 MB, free: 3.133 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.902e-05/0.006869, allocations: 8.938 kB / 377.5 MB, free: 3.125 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.656e-05/0.006935, allocations: 104.6 kB / 377.6 MB, free: 2.996 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.006947, allocations: 384 / 377.6 MB, free: 2.996 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.006964, allocations: 12.28 kB / 377.6 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.00707, allocations: 59.97 kB / 377.7 MB, free: 2.914 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.007082, allocations: 192 / 377.7 MB, free: 2.914 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.00709, allocations: 384 / 377.7 MB, free: 2.914 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.007098, allocations: 384 / 377.7 MB, free: 2.914 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.168e-05/0.00712, allocations: 33.64 kB / 377.7 MB, free: 2.875 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001081/0.007228, allocations: 116.6 kB / 377.8 MB, free: 2.727 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.298e-05/0.007281, allocations: 60.78 kB / 377.9 MB, free: 2.648 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.443e-05/0.007306, allocations: 37.33 kB / 377.9 MB, free: 2.602 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.459e-06/0.00731, allocations: 0 / 377.9 MB, free: 2.602 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.007349, allocations: 63.16 kB / 378 MB, free: 2.523 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.007349, allocations: 0 / 378 MB, free: 2.523 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001769/0.007526, allocations: 114.8 kB / 378.1 MB, free: 2.387 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.007568, allocations: 81.11 kB / 378.2 MB, free: 2.289 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.514e-05/0.007623, allocations: 142.2 kB / 378.3 MB, free: 2.137 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.598e-06/0.007633, allocations: 25.83 kB / 378.3 MB, free: 2.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.641e-05/0.007669, allocations: 134.9 kB / 378.5 MB, free: 1.969 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.59e-05/0.007685, allocations: 352 / 378.5 MB, free: 1.969 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.019e-05/0.007715, allocations: 15.38 kB / 378.5 MB, free: 1.945 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.007842, allocations: 0.4883 MB / 379 MB, free: 1.445 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.469e-05/0.007867, allocations: 29.64 kB / 379 MB, free: 1.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.631e-05/0.007883, allocations: 29.69 kB / 379 MB, free: 1.375 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.017e-05/0.007933, allocations: 67.09 kB / 379.1 MB, free: 1.293 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.007936, allocations: 0 / 379.1 MB, free: 1.293 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.988e-05/0.008016, allocations: 89.06 kB / 379.2 MB, free: 1.188 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.206e-05/0.008048, allocations: 41.78 kB / 379.2 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.008053, allocations: 0 / 379.2 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.008069, allocations: 0 / 379.2 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.609e-06/0.008073, allocations: 0 / 379.2 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.008079, allocations: 0 / 379.2 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.794e-05/0.008097, allocations: 3.938 kB / 379.2 MB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-06/0.008103, allocations: 0 / 379.2 MB, free: 1.137 MB / 346.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 8.025e-05/0.008183, allocations: 190.2 kB / 379.4 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.873e-06/0.00819, allocations: 0 / 379.4 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.379e-05/0.008204, allocations: 7 kB / 379.4 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.008206, allocations: 4 kB / 379.4 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.008212, allocations: 3.984 kB / 379.4 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.008215, allocations: 0 / 379.4 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.284e-05/0.008277, allocations: 108.6 kB / 379.5 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-06/0.00828, allocations: 4 kB / 379.5 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.024e-06/0.008282, allocations: 4 kB / 379.6 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.008283, allocations: 0 / 379.6 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.962e-06/0.008289, allocations: 3.938 kB / 379.6 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.00829, allocations: 0 / 379.6 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.008291, allocations: 0 / 379.6 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001044/0.008395, allocations: 131.8 kB / 379.7 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.56e-06/0.008401, allocations: 8.031 kB / 379.7 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.408e-05/0.008415, allocations: 0 / 379.7 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.865e-06/0.008423, allocations: 0 / 379.7 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.271e-05/0.008435, allocations: 3.938 kB / 379.7 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.008441, allocations: 7.984 kB / 379.7 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.504e-05/0.008476, allocations: 119.2 kB / 379.8 MB, free: 480 kB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.008476, allocations: 0 / 379.8 MB, free: 480 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002339/0.00871, allocations: 31.94 kB / 379.9 MB, free: 448 kB / 346.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.0006057/0.009316, allocations: 289.8 kB / 380.1 MB, free: 216 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001224/0.009438, allocations: 122.5 kB / 380.3 MB, free: 64 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.00944, allocations: 0 / 380.3 MB, free: 64 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.22e-05/0.009502, allocations: 92.78 kB / 380.3 MB, free: 15.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001255/0.009628, allocations: 128 / 380.3 MB, free: 15.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001947/0.009822, allocations: 113.7 kB / 380.5 MB, free: 15.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.497e-05/0.009857, allocations: 59.34 kB / 380.5 MB, free: 15.72 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.651e-06/0.009863, allocations: 3.938 kB / 380.5 MB, free: 15.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.941e-05/0.009892, allocations: 8.5 kB / 380.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of SimCode: time 5.91e-07/0.009893, allocations: 0 / 380.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of Templates: time 0.002893/0.01279, allocations: 1.034 MB / 381.6 MB, free: 14.68 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1228514658287168]