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.001061/0.001061, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001208/0.001208, allocations: 159.4 kB / 25.61 MB, free: 8.891 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.9512/0.9512, allocations: 177.1 MB / 206 MB, free: 4.484 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.1428/0.1428, allocations: 32.8 MB / 295.4 MB, free: 15.37 MB / 282.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.462e-06/1.462e-06, allocations: 0 / 377.2 MB, free: 25.63 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.452e-05/1.598e-05, allocations: 2.312 kB / 377.2 MB, free: 25.63 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0008713/0.0008873, allocations: 497.7 kB / 377.7 MB, free: 25.14 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004343/0.001322, allocations: 299.2 kB / 378 MB, free: 24.85 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.995e-05/0.001341, allocations: 0 / 378 MB, free: 24.85 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.367e-05/0.001355, allocations: 0 / 378 MB, free: 24.85 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.29e-06/0.00136, allocations: 0 / 378 MB, free: 24.85 MB / 314.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.0005749/0.001935, allocations: 106.4 kB / 378.1 MB, free: 24.75 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.178e-05/0.001977, allocations: 0 / 378.1 MB, free: 24.75 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.927e-05/0.002006, allocations: 7.938 kB / 378.1 MB, free: 24.74 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.226e-05/0.002029, allocations: 0 / 378.1 MB, free: 24.74 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.675e-05/0.002045, allocations: 0 / 378.1 MB, free: 24.74 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.152e-06/0.002052, allocations: 4 kB / 378.1 MB, free: 24.74 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.002181, allocations: 107.8 kB / 378.2 MB, free: 24.63 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.171e-06/0.002187, allocations: 0 / 378.2 MB, free: 24.63 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.224e-05/0.002199, allocations: 0 / 378.2 MB, free: 24.63 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.002343, allocations: 115.6 kB / 378.3 MB, free: 24.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.493e-06/0.002344, allocations: 4 kB / 378.4 MB, free: 24.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.002345, allocations: 0 / 378.4 MB, free: 24.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.407e-06/0.002348, allocations: 0 / 378.4 MB, free: 24.52 MB / 314.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.0001772/0.002525, allocations: 385.9 kB / 378.7 MB, free: 24.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.751e-05/0.002553, allocations: 11.98 kB / 378.7 MB, free: 24.08 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.258e-05/0.002575, allocations: 0.9375 kB / 378.7 MB, free: 24.08 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.274e-05/0.002608, allocations: 116.6 kB / 378.9 MB, free: 23.94 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.396e-06/0.002617, allocations: 8.312 kB / 378.9 MB, free: 23.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.529e-06/0.002621, allocations: 384 / 378.9 MB, free: 23.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.736e-05/0.002668, allocations: 59.95 kB / 378.9 MB, free: 23.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.07e-06/0.002674, allocations: 192 / 378.9 MB, free: 23.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.819e-06/0.002678, allocations: 384 / 378.9 MB, free: 23.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-06/0.002682, allocations: 384 / 378.9 MB, free: 23.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.012e-05/0.002692, allocations: 37.62 kB / 379 MB, free: 23.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 4.881e-05/0.002741, allocations: 93.27 kB / 379.1 MB, free: 23.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.863e-05/0.002769, allocations: 60.73 kB / 379.1 MB, free: 23.62 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.008e-05/0.002779, allocations: 37.39 kB / 379.1 MB, free: 23.58 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-06/0.002782, allocations: 0 / 379.1 MB, free: 23.58 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.002801, allocations: 67.14 kB / 379.2 MB, free: 23.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 4.9e-07/0.002801, allocations: 0 / 379.2 MB, free: 23.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001009/0.002902, allocations: 114.8 kB / 379.3 MB, free: 23.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.764e-05/0.00292, allocations: 77.11 kB / 379.4 MB, free: 23.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.818e-05/0.002938, allocations: 146.2 kB / 379.5 MB, free: 23.11 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.358e-06/0.002942, allocations: 25.7 kB / 379.6 MB, free: 23.08 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.087e-06/0.002951, allocations: 130.9 kB / 379.7 MB, free: 22.95 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.199e-05/0.002963, allocations: 0 / 379.7 MB, free: 22.95 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.604e-05/0.00298, allocations: 27.44 kB / 379.7 MB, free: 22.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.022e-05/0.00302, allocations: 496.1 kB / 380.2 MB, free: 22.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.354e-06/0.003027, allocations: 29.7 kB / 380.2 MB, free: 22.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-06/0.003034, allocations: 25.7 kB / 380.3 MB, free: 22.35 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.62e-05/0.00306, allocations: 71.08 kB / 380.3 MB, free: 22.26 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.003061, allocations: 0 / 380.3 MB, free: 22.26 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.422e-05/0.003095, allocations: 85.11 kB / 380.4 MB, free: 22.16 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.003112, allocations: 29.7 kB / 380.4 MB, free: 22.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.003115, allocations: 3.938 kB / 380.4 MB, free: 22.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.712e-06/0.003122, allocations: 96 / 380.4 MB, free: 22.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.003123, allocations: 4 kB / 380.4 MB, free: 22.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.224e-06/0.003125, allocations: 7.938 kB / 380.5 MB, free: 22.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.385e-06/0.003133, allocations: 0 / 380.5 MB, free: 22.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.003139, allocations: 3.984 kB / 380.5 MB, free: 22.11 MB / 314.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 3.674e-05/0.003176, allocations: 186.2 kB / 380.6 MB, free: 21.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.857e-06/0.00318, allocations: 352 / 380.6 MB, free: 21.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.332e-06/0.003186, allocations: 3 kB / 380.6 MB, free: 21.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.91e-07/0.003187, allocations: 0 / 380.6 MB, free: 21.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-06/0.003188, allocations: 0 / 380.6 MB, free: 21.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.003191, allocations: 4 kB / 380.7 MB, free: 21.9 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.434e-05/0.003225, allocations: 101.1 kB / 380.7 MB, free: 21.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.6e-07/0.003225, allocations: 0 / 380.7 MB, free: 21.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.91e-07/0.003226, allocations: 3.984 kB / 380.8 MB, free: 21.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.21e-07/0.003227, allocations: 0 / 380.8 MB, free: 21.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-06/0.00323, allocations: 0 / 380.8 MB, free: 21.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.9e-07/0.00323, allocations: 4 kB / 380.8 MB, free: 21.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-07/0.00323, allocations: 0 / 380.8 MB, free: 21.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.393e-05/0.003274, allocations: 135.7 kB / 380.9 MB, free: 21.6 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.657e-06/0.003278, allocations: 7.938 kB / 380.9 MB, free: 21.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.076e-06/0.003286, allocations: 0 / 380.9 MB, free: 21.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.178e-06/0.00329, allocations: 8.031 kB / 380.9 MB, free: 21.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.053e-06/0.003297, allocations: 3.984 kB / 380.9 MB, free: 21.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-06/0.003299, allocations: 0 / 380.9 MB, free: 21.58 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.099e-05/0.00331, allocations: 119.2 kB / 381 MB, free: 21.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00331, allocations: 0 / 381 MB, free: 21.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001418/0.003451, allocations: 35.92 kB / 381.1 MB, free: 21.43 MB / 314.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.0003626/0.003814, allocations: 295 kB / 381.3 MB, free: 21.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 5.544e-05/0.00387, allocations: 126.5 kB / 381.5 MB, free: 21.05 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.01e-07/0.00387, allocations: 0 / 381.5 MB, free: 21.05 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.449e-05/0.003885, allocations: 88.8 kB / 381.6 MB, free: 20.94 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.692e-05/0.003962, allocations: 7.938 kB / 381.6 MB, free: 20.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 9.976e-05/0.004062, allocations: 111.5 kB / 381.7 MB, free: 20.79 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.452e-05/0.004076, allocations: 55.34 kB / 381.7 MB, free: 20.71 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.558e-06/0.004081, allocations: 4 kB / 381.7 MB, free: 20.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.043e-05/0.004101, allocations: 70.2 kB / 381.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.004102, allocations: 0 / 381.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of Templates: time 0.002106/0.006208, allocations: 1.168 MB / 383 MB, free: 19.48 MB / 314.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.089255631901324]