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.001077/0.001077, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001621/0.002698, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.00156/0.00156, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002286/0.003846, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.076/1.076, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1079/1.184, allocations: 53.66 MB / 243.4 MB, free: 15.49 MB / 250.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.316/0.316, allocations: 34.26 MB / 278.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0286/0.3446, allocations: 13.1 MB / 291.5 MB, free: 7.324 MB / 282.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 2.054e-06/2.054e-06, allocations: 0 / 292.8 MB, free: 6.227 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.886e-05/3.092e-05, allocations: 2.969 kB / 292.8 MB, free: 6.223 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002314/0.002345, allocations: 0.5354 MB / 293.3 MB, free: 5.691 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000634/0.002979, allocations: 319.4 kB / 293.6 MB, free: 5.379 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.805e-05/0.002997, allocations: 0 / 293.6 MB, free: 5.379 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.979e-06/0.003002, allocations: 0 / 293.6 MB, free: 5.379 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.184e-06/0.003004, allocations: 0 / 293.6 MB, free: 5.379 MB / 282.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.000826/0.00383, allocations: 106.2 kB / 293.8 MB, free: 5.285 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.779e-05/0.003898, allocations: 4 kB / 293.8 MB, free: 5.281 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.994e-05/0.003938, allocations: 4 kB / 293.8 MB, free: 5.277 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.886e-05/0.003977, allocations: 0 / 293.8 MB, free: 5.277 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.835e-05/0.004005, allocations: 0 / 293.8 MB, free: 5.277 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.024e-05/0.004015, allocations: 0 / 293.8 MB, free: 5.277 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002649/0.00428, allocations: 123.8 kB / 293.9 MB, free: 5.156 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.497e-05/0.004295, allocations: 7.938 kB / 293.9 MB, free: 5.148 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.355e-05/0.004309, allocations: 0 / 293.9 MB, free: 5.148 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.004515, allocations: 87.78 kB / 294 MB, free: 5.062 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.335e-05/0.004529, allocations: 0 / 294 MB, free: 5.062 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.004531, allocations: 4 kB / 294 MB, free: 5.059 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.004541, allocations: 0 / 294 MB, free: 5.059 MB / 282.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.0003166/0.004858, allocations: 278.1 kB / 294.3 MB, free: 4.754 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.004897, allocations: 8.031 kB / 294.3 MB, free: 4.746 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.821e-05/0.004935, allocations: 0.9375 kB / 294.3 MB, free: 4.746 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.513e-05/0.00501, allocations: 109.8 kB / 294.4 MB, free: 4.613 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.005021, allocations: 4.375 kB / 294.4 MB, free: 4.609 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.005033, allocations: 4.359 kB / 294.4 MB, free: 4.605 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.456e-05/0.005117, allocations: 55.97 kB / 294.4 MB, free: 4.539 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.005123, allocations: 192 / 294.4 MB, free: 4.539 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.693e-06/0.00513, allocations: 384 / 294.4 MB, free: 4.539 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.005136, allocations: 384 / 294.4 MB, free: 4.539 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.291e-05/0.005158, allocations: 41.56 kB / 294.5 MB, free: 4.492 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.063e-05/0.005239, allocations: 57.05 kB / 294.5 MB, free: 4.422 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.961e-05/0.005289, allocations: 44.31 kB / 294.6 MB, free: 4.363 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.89e-05/0.005308, allocations: 30.56 kB / 294.6 MB, free: 4.324 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.977e-06/0.005312, allocations: 8.062 kB / 294.6 MB, free: 4.316 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.102e-05/0.005353, allocations: 56.27 kB / 294.7 MB, free: 4.246 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.005354, allocations: 0 / 294.7 MB, free: 4.246 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001487/0.005502, allocations: 118.7 kB / 294.8 MB, free: 4.105 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.925e-05/0.005571, allocations: 154.2 kB / 294.9 MB, free: 3.918 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.152e-05/0.005613, allocations: 89.86 kB / 295 MB, free: 3.82 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.005631, allocations: 33.69 kB / 295.1 MB, free: 3.781 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.557e-05/0.005656, allocations: 84.14 kB / 295.1 MB, free: 3.695 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.146e-05/0.005688, allocations: 0 / 295.1 MB, free: 3.695 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.212e-05/0.00572, allocations: 9.719 kB / 295.1 MB, free: 3.68 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.433e-05/0.005814, allocations: 326.9 kB / 295.5 MB, free: 3.352 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.025e-05/0.005844, allocations: 29.7 kB / 295.5 MB, free: 3.316 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.794e-05/0.005862, allocations: 29.7 kB / 295.5 MB, free: 3.281 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.628e-05/0.005919, allocations: 64.25 kB / 295.6 MB, free: 3.203 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.005921, allocations: 0 / 295.6 MB, free: 3.203 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.692e-05/0.005998, allocations: 85.05 kB / 295.7 MB, free: 3.102 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.511e-05/0.006043, allocations: 29.7 kB / 295.7 MB, free: 3.066 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.00605, allocations: 4 kB / 295.7 MB, free: 3.062 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.006063, allocations: 0 / 295.7 MB, free: 3.062 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.914e-06/0.006065, allocations: 4.094 kB / 295.7 MB, free: 3.059 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.006074, allocations: 3.984 kB / 295.7 MB, free: 3.055 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.12e-05/0.006095, allocations: 4.625 kB / 295.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.006105, allocations: 0 / 295.7 MB, free: 3.051 MB / 282.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.392e-05/0.006189, allocations: 139.5 kB / 295.8 MB, free: 2.898 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.716e-06/0.006198, allocations: 0 / 295.8 MB, free: 2.898 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.352e-05/0.006211, allocations: 11 kB / 295.9 MB, free: 2.891 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.006214, allocations: 0 / 295.9 MB, free: 2.891 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/0.006215, allocations: 0 / 295.9 MB, free: 2.891 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.006218, allocations: 0 / 295.9 MB, free: 2.891 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.166e-05/0.00628, allocations: 65.83 kB / 295.9 MB, free: 2.809 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.006281, allocations: 4 kB / 295.9 MB, free: 2.805 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.154e-06/0.006283, allocations: 4 kB / 295.9 MB, free: 2.801 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.458e-06/0.006288, allocations: 0 / 295.9 MB, free: 2.801 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.00629, allocations: 0 / 295.9 MB, free: 2.801 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-06/0.006295, allocations: 0 / 295.9 MB, free: 2.801 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.006299, allocations: 3.938 kB / 295.9 MB, free: 2.797 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.006301, allocations: 0 / 295.9 MB, free: 2.797 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.006403, allocations: 116.5 kB / 296 MB, free: 2.652 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.006417, allocations: 0 / 296 MB, free: 2.652 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.167e-06/0.006426, allocations: 0 / 296 MB, free: 2.652 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.046e-05/0.006437, allocations: 4.031 kB / 296.1 MB, free: 2.648 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.006439, allocations: 4 kB / 296.1 MB, free: 2.645 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.618e-06/0.006449, allocations: 4.859 kB / 296.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006449, allocations: 0 / 296.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002449/0.006694, allocations: 35.92 kB / 296.1 MB, free: 2.602 MB / 282.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.0008455/0.007539, allocations: 337.6 kB / 296.4 MB, free: 2.391 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001216/0.007661, allocations: 127.6 kB / 296.5 MB, free: 2.238 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.007666, allocations: 0 / 296.5 MB, free: 2.238 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.966e-05/0.007705, allocations: 85.97 kB / 296.6 MB, free: 2.133 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.764e-05/0.007773, allocations: 11.92 kB / 296.6 MB, free: 2.121 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001841/0.007957, allocations: 109.1 kB / 296.8 MB, free: 1.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.79e-05/0.007985, allocations: 51.55 kB / 296.8 MB, free: 1.91 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.663e-06/0.007992, allocations: 4 kB / 296.8 MB, free: 1.906 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.62e-05/0.008038, allocations: 59.36 kB / 296.9 MB, free: 1.848 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.008038, allocations: 0 / 296.9 MB, free: 1.848 MB / 282.7 MB Notification: Performance of Templates: time 0.002877/0.01092, allocations: 1.202 MB / 298.1 MB, free: 0.6484 MB / 282.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0450769662857056]