Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001052/0.001052, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001517/0.002569, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001076/0.001076, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001372/0.002449, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9575/0.9575, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0901/1.048, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2496/0.2496, allocations: 34.86 MB / 279.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02602/0.2756, allocations: 13.23 MB / 292.6 MB, free: 6.461 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 293.8 MB, free: 5.223 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.137e-05/2.277e-05, allocations: 4.422 kB / 293.8 MB, free: 5.219 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00138/0.001402, allocations: 0.5297 MB / 294.4 MB, free: 4.688 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004926/0.001895, allocations: 315.4 kB / 294.7 MB, free: 4.383 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.37e-05/0.001909, allocations: 0 / 294.7 MB, free: 4.383 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.907e-06/0.001913, allocations: 0 / 294.7 MB, free: 4.383 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.124e-06/0.001915, allocations: 3.938 kB / 294.7 MB, free: 4.379 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:232:3-298: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.0005736/0.002488, allocations: 101.9 kB / 294.8 MB, free: 4.285 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.526e-05/0.002544, allocations: 0 / 294.8 MB, free: 4.285 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.469e-05/0.002578, allocations: 4 kB / 294.8 MB, free: 4.281 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.91e-05/0.002617, allocations: 3.984 kB / 294.8 MB, free: 4.277 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.267e-05/0.00264, allocations: 0 / 294.8 MB, free: 4.277 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.494e-06/0.002648, allocations: 0 / 294.8 MB, free: 4.277 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002185/0.002866, allocations: 115.8 kB / 294.9 MB, free: 4.164 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.27e-05/0.002879, allocations: 4 kB / 294.9 MB, free: 4.16 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.26e-05/0.002891, allocations: 0 / 294.9 MB, free: 4.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001933/0.003085, allocations: 87.72 kB / 295 MB, free: 4.074 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.546e-05/0.0031, allocations: 0 / 295 MB, free: 4.074 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.003101, allocations: 4 kB / 295 MB, free: 4.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.52e-05/0.003117, allocations: 0 / 295 MB, free: 4.07 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.0002929/0.003409, allocations: 278.2 kB / 295.3 MB, free: 3.766 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.003441, allocations: 8.922 kB / 295.3 MB, free: 3.758 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.471e-05/0.003476, allocations: 4.875 kB / 295.3 MB, free: 3.754 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.835e-05/0.003544, allocations: 109.8 kB / 295.4 MB, free: 3.621 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.003554, allocations: 384 / 295.4 MB, free: 3.621 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.023e-06/0.003561, allocations: 384 / 295.4 MB, free: 3.621 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.462e-05/0.003646, allocations: 59.95 kB / 295.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.545e-06/0.003653, allocations: 192 / 295.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-06/0.003659, allocations: 4.375 kB / 295.4 MB, free: 3.547 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.003665, allocations: 384 / 295.4 MB, free: 3.547 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.179e-05/0.003687, allocations: 41.56 kB / 295.5 MB, free: 3.5 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.653e-05/0.003753, allocations: 53.05 kB / 295.5 MB, free: 3.434 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.794e-05/0.003801, allocations: 52.25 kB / 295.6 MB, free: 3.367 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.042e-05/0.003822, allocations: 38.55 kB / 295.6 MB, free: 3.32 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.166e-06/0.003825, allocations: 0 / 295.6 MB, free: 3.32 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.003862, allocations: 60.33 kB / 295.7 MB, free: 3.246 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.003862, allocations: 0 / 295.7 MB, free: 3.246 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.000129/0.003991, allocations: 110.8 kB / 295.8 MB, free: 3.113 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.004032, allocations: 89.16 kB / 295.9 MB, free: 3.008 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.602e-05/0.004068, allocations: 89.86 kB / 296 MB, free: 2.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.768e-06/0.004078, allocations: 25.7 kB / 296 MB, free: 2.879 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.095e-05/0.004099, allocations: 84.12 kB / 296.1 MB, free: 2.793 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.858e-05/0.004117, allocations: 4.688 kB / 296.1 MB, free: 2.789 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.921e-05/0.004146, allocations: 9.719 kB / 296.1 MB, free: 2.773 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.306e-05/0.00423, allocations: 318.8 kB / 296.4 MB, free: 2.453 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.763e-05/0.004247, allocations: 29.7 kB / 296.4 MB, free: 2.418 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.263e-05/0.00426, allocations: 25.7 kB / 296.5 MB, free: 2.387 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.652e-05/0.004306, allocations: 68.31 kB / 296.5 MB, free: 2.305 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.004309, allocations: 0 / 296.5 MB, free: 2.305 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.06e-05/0.004369, allocations: 89.05 kB / 296.6 MB, free: 2.199 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.897e-05/0.004408, allocations: 33.69 kB / 296.6 MB, free: 2.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.004413, allocations: 0 / 296.6 MB, free: 2.16 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.325e-06/0.004421, allocations: 0 / 296.6 MB, free: 2.16 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.992e-06/0.004427, allocations: 4 kB / 296.6 MB, free: 2.156 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.004e-06/0.004429, allocations: 0 / 296.6 MB, free: 2.156 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.752e-05/0.004447, allocations: 0 / 296.6 MB, free: 2.156 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.004454, allocations: 0 / 296.6 MB, free: 2.156 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 6.582e-05/0.00452, allocations: 143.5 kB / 296.8 MB, free: 2 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.6e-06/0.004526, allocations: 0 / 296.8 MB, free: 2 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.806e-06/0.004534, allocations: 3 kB / 296.8 MB, free: 2 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.004536, allocations: 0 / 296.8 MB, free: 2 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-06/0.004537, allocations: 0 / 296.8 MB, free: 2 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.004542, allocations: 7.984 kB / 296.8 MB, free: 1.992 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.176e-05/0.004594, allocations: 61.84 kB / 296.9 MB, free: 1.914 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.004595, allocations: 0 / 296.9 MB, free: 1.914 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.004595, allocations: 0 / 296.9 MB, free: 1.914 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.96e-06/0.0046, allocations: 7.938 kB / 296.9 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.72e-07/0.004601, allocations: 0 / 296.9 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.987e-06/0.004605, allocations: 4 kB / 296.9 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.004605, allocations: 0 / 296.9 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.004606, allocations: 0 / 296.9 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.932e-05/0.004686, allocations: 124.4 kB / 297 MB, free: 1.75 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.068e-05/0.004696, allocations: 4 kB / 297 MB, free: 1.746 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.715e-06/0.004704, allocations: 0 / 297 MB, free: 1.746 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.035e-06/0.004712, allocations: 0 / 297 MB, free: 1.746 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.004714, allocations: 0 / 297 MB, free: 1.746 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.973e-06/0.004721, allocations: 8.859 kB / 297 MB, free: 1.734 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.004721, allocations: 0 / 297 MB, free: 1.734 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001862/0.004907, allocations: 35.92 kB / 297 MB, free: 1.699 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.003694/0.008601, allocations: 329.1 kB / 297.4 MB, free: 1.5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001145/0.008716, allocations: 119.7 kB / 297.5 MB, free: 1.355 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.00872, allocations: 4.062 kB / 297.5 MB, free: 1.352 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.572e-05/0.008755, allocations: 93.91 kB / 297.6 MB, free: 1.238 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.883e-05/0.008814, allocations: 3.938 kB / 297.6 MB, free: 1.234 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001721/0.008986, allocations: 113.4 kB / 297.7 MB, free: 1.09 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.204e-05/0.009018, allocations: 51.36 kB / 297.7 MB, free: 1.02 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.683e-06/0.009025, allocations: 0 / 297.7 MB, free: 1.02 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.316e-05/0.009068, allocations: 55.36 kB / 297.8 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of SimCode: time 1.212e-06/0.009069, allocations: 0 / 297.8 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of Templates: time 0.006235/0.0153, allocations: 1.168 MB / 299 MB, free: 15.8 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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: 2.802907543256879]