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.0009828/0.0009828, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009719/0.0009719, allocations: 165.4 kB / 24.56 MB, free: 16 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.917/0.917, allocations: 177.1 MB / 205 MB, free: 5.289 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.2391/0.2391, allocations: 34.26 MB / 295.7 MB, free: 0.7148 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.933e-06/1.933e-06, allocations: 0 / 378 MB, free: 2.699 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.517e-05/3.71e-05, allocations: 5.547 kB / 378 MB, free: 2.695 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001799/0.001837, allocations: 493 kB / 378.5 MB, free: 2.211 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000749/0.002586, allocations: 307.2 kB / 378.8 MB, free: 1.91 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.488e-05/0.00261, allocations: 0 / 378.8 MB, free: 1.91 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.186e-05/0.002632, allocations: 0 / 378.8 MB, free: 1.91 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.785e-06/0.00264, allocations: 0 / 378.8 MB, free: 1.91 MB / 346.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.001031/0.003671, allocations: 127.5 kB / 378.9 MB, free: 1.801 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.015e-05/0.003741, allocations: 0 / 378.9 MB, free: 1.801 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.954e-05/0.003781, allocations: 0 / 378.9 MB, free: 1.801 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.535e-05/0.003816, allocations: 4 kB / 378.9 MB, free: 1.797 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.479e-05/0.003841, allocations: 0 / 378.9 MB, free: 1.797 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.929e-06/0.003851, allocations: 0 / 378.9 MB, free: 1.797 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000255/0.004106, allocations: 111.8 kB / 379 MB, free: 1.688 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.131e-05/0.004117, allocations: 3.984 kB / 379 MB, free: 1.684 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.189e-05/0.004139, allocations: 3.984 kB / 379 MB, free: 1.68 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002328/0.004372, allocations: 107.7 kB / 379.1 MB, free: 1.574 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.004375, allocations: 0 / 379.1 MB, free: 1.574 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.004377, allocations: 4 kB / 379.1 MB, free: 1.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.004384, allocations: 0 / 379.1 MB, free: 1.57 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.0003523/0.004737, allocations: 385.9 kB / 379.5 MB, free: 1.148 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.004778, allocations: 8.031 kB / 379.5 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.523e-05/0.004823, allocations: 0.9375 kB / 379.5 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.477e-05/0.004898, allocations: 112.6 kB / 379.6 MB, free: 1.004 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.004909, allocations: 8.312 kB / 379.7 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.596e-06/0.004917, allocations: 384 / 379.7 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001037/0.005021, allocations: 63.95 kB / 379.7 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.00503, allocations: 192 / 379.7 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.00504, allocations: 384 / 379.7 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.005049, allocations: 384 / 379.7 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.706e-05/0.005076, allocations: 29.64 kB / 379.7 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001208/0.005197, allocations: 112.6 kB / 379.9 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.958e-05/0.005257, allocations: 60.72 kB / 379.9 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.494e-05/0.005282, allocations: 37.39 kB / 379.9 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.17e-06/0.005287, allocations: 4 kB / 380 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.496e-05/0.005332, allocations: 63.09 kB / 380 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.005333, allocations: 4 kB / 380 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001915/0.005524, allocations: 118.8 kB / 380.1 MB, free: 400 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.005566, allocations: 77.11 kB / 380.2 MB, free: 304 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.511e-05/0.005621, allocations: 146.2 kB / 380.4 MB, free: 144 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.005631, allocations: 25.7 kB / 380.4 MB, free: 112 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.913e-05/0.005681, allocations: 126.9 kB / 380.5 MB, free: 15.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.582e-05/0.005696, allocations: 352 / 380.5 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.937e-05/0.005726, allocations: 23.31 kB / 380.5 MB, free: 15.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.005864, allocations: 0.4885 MB / 381 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.95e-05/0.005893, allocations: 29.7 kB / 381 MB, free: 15.41 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.566e-05/0.005909, allocations: 29.69 kB / 381.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.944e-05/0.005968, allocations: 71.09 kB / 381.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.005971, allocations: 0 / 381.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.299e-05/0.006054, allocations: 89.06 kB / 381.2 MB, free: 15.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.39e-05/0.006087, allocations: 33.69 kB / 381.3 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.006093, allocations: 0 / 381.3 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.006107, allocations: 0 / 381.3 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.91e-06/0.006112, allocations: 8.094 kB / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.00612, allocations: 3.938 kB / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.937e-05/0.006139, allocations: 3.938 kB / 381.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-06/0.006146, allocations: 0 / 381.3 MB, free: 15.13 MB / 362.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 9.581e-05/0.006242, allocations: 186.3 kB / 381.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.07e-05/0.006253, allocations: 0 / 381.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.08e-05/0.006264, allocations: 3 kB / 381.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.006266, allocations: 0 / 381.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.006272, allocations: 7.984 kB / 381.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.006274, allocations: 0 / 381.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.688e-05/0.006351, allocations: 108.6 kB / 381.6 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.006354, allocations: 4 kB / 381.6 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.72e-07/0.006354, allocations: 0 / 381.6 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.006358, allocations: 0 / 381.6 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.006367, allocations: 4 kB / 381.6 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.006369, allocations: 0 / 381.6 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.006371, allocations: 0 / 381.6 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001281/0.006499, allocations: 131.8 kB / 381.7 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.613e-06/0.006506, allocations: 7.875 kB / 381.7 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.591e-05/0.006522, allocations: 4 kB / 381.7 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.099e-05/0.006533, allocations: 0 / 381.7 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.251e-05/0.006545, allocations: 4.031 kB / 381.7 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.006551, allocations: 3.984 kB / 381.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.317e-05/0.006584, allocations: 119.2 kB / 381.8 MB, free: 14.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.006584, allocations: 0 / 381.8 MB, free: 14.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002896/0.006873, allocations: 31.94 kB / 381.9 MB, free: 14.45 MB / 362.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.0007554/0.007629, allocations: 302.1 kB / 382.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000141/0.00777, allocations: 122.5 kB / 382.3 MB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.007772, allocations: 0 / 382.3 MB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.386e-05/0.007826, allocations: 92.78 kB / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001675/0.007993, allocations: 0 / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003183/0.008312, allocations: 117.6 kB / 382.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.247e-05/0.008354, allocations: 55.34 kB / 382.6 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.983e-06/0.008361, allocations: 128 / 382.6 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.012e-05/0.008381, allocations: 16.5 kB / 382.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.008382, allocations: 0 / 382.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of Templates: time 0.004102/0.01248, allocations: 1.153 MB / 383.7 MB, free: 12.55 MB / 362.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: 3.06675821589306]