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.001104/0.001104, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001525/0.002629, allocations: 457.8 kB / 10.45 MB, free: 244 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.001/0.001, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001444/0.002445, allocations: 475.6 kB / 11.82 MB, free: 2.348 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.9721/0.9721, allocations: 177.5 MB / 190 MB, free: 4.762 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09451/1.067, allocations: 53.88 MB / 243.9 MB, free: 14.81 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.2498/0.2498, allocations: 34.88 MB / 279.5 MB, free: 14.92 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02487/0.2747, allocations: 13.24 MB / 292.8 MB, free: 6.352 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.573e-06/1.573e-06, allocations: 0 / 294.1 MB, free: 5.082 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.503e-05/2.66e-05, allocations: 9.344 kB / 294.1 MB, free: 5.074 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002044/0.00207, allocations: 0.5293 MB / 294.6 MB, free: 4.543 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000586/0.002656, allocations: 315.4 kB / 294.9 MB, free: 4.238 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.44e-05/0.002671, allocations: 0 / 294.9 MB, free: 4.238 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.501e-06/0.002676, allocations: 0 / 294.9 MB, free: 4.238 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.954e-06/0.002678, allocations: 0 / 294.9 MB, free: 4.238 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.0005198/0.003198, allocations: 90.11 kB / 295 MB, free: 4.152 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.145e-05/0.003249, allocations: 11.94 kB / 295 MB, free: 4.141 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.099e-05/0.00328, allocations: 7.984 kB / 295 MB, free: 4.133 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.154e-05/0.003312, allocations: 4 kB / 295 MB, free: 4.129 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.97e-05/0.003332, allocations: 0 / 295 MB, free: 4.129 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.773e-06/0.003338, allocations: 0 / 295 MB, free: 4.129 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001747/0.003513, allocations: 115.8 kB / 295.1 MB, free: 4.016 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.196e-05/0.003525, allocations: 0 / 295.1 MB, free: 4.016 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.243e-05/0.003537, allocations: 7.984 kB / 295.1 MB, free: 4.008 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.003693, allocations: 87.73 kB / 295.2 MB, free: 3.922 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.089e-05/0.003704, allocations: 0 / 295.2 MB, free: 3.922 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.003705, allocations: 0 / 295.2 MB, free: 3.922 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.003715, allocations: 0 / 295.2 MB, free: 3.922 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.0002531/0.003968, allocations: 282.2 kB / 295.5 MB, free: 3.613 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.004, allocations: 12.92 kB / 295.5 MB, free: 3.602 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.863e-05/0.004038, allocations: 0.9375 kB / 295.5 MB, free: 3.602 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.639e-05/0.004095, allocations: 105.8 kB / 295.6 MB, free: 3.473 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-06/0.004105, allocations: 384 / 295.6 MB, free: 3.473 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.067e-06/0.004114, allocations: 4.375 kB / 295.6 MB, free: 3.469 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.511e-05/0.004179, allocations: 59.89 kB / 295.7 MB, free: 3.398 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.581e-06/0.004184, allocations: 4.188 kB / 295.7 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.47e-06/0.00419, allocations: 384 / 295.7 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.004194, allocations: 384 / 295.7 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.477e-05/0.004209, allocations: 33.64 kB / 295.7 MB, free: 3.355 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.783e-05/0.004267, allocations: 57.05 kB / 295.8 MB, free: 3.285 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.652e-05/0.004303, allocations: 48.3 kB / 295.8 MB, free: 3.223 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.661e-05/0.00432, allocations: 34.56 kB / 295.9 MB, free: 3.18 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-06/0.004323, allocations: 3.938 kB / 295.9 MB, free: 3.176 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.004354, allocations: 64.27 kB / 295.9 MB, free: 3.098 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 4.71e-07/0.004355, allocations: 0 / 295.9 MB, free: 3.098 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 9.708e-05/0.004452, allocations: 110.8 kB / 296 MB, free: 2.965 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.004498, allocations: 158.2 kB / 296.2 MB, free: 2.773 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.855e-05/0.004526, allocations: 89.98 kB / 296.3 MB, free: 2.676 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.925e-06/0.004534, allocations: 29.7 kB / 296.3 MB, free: 2.641 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.635e-05/0.004551, allocations: 80.14 kB / 296.4 MB, free: 2.559 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.004569, allocations: 0.6875 kB / 296.4 MB, free: 2.559 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.169e-05/0.004591, allocations: 17.7 kB / 296.4 MB, free: 2.535 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.392e-05/0.004655, allocations: 314.8 kB / 296.7 MB, free: 2.219 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.472e-05/0.004669, allocations: 37.69 kB / 296.7 MB, free: 2.176 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.133e-05/0.004681, allocations: 25.7 kB / 296.8 MB, free: 2.145 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.794e-05/0.004719, allocations: 64.2 kB / 296.8 MB, free: 2.066 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.00472, allocations: 0 / 296.8 MB, free: 2.066 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.293e-05/0.004763, allocations: 93.16 kB / 296.9 MB, free: 1.957 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/0.004796, allocations: 29.7 kB / 297 MB, free: 1.922 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.0048, allocations: 0 / 297 MB, free: 1.922 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.097e-06/0.004809, allocations: 0 / 297 MB, free: 1.922 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.593e-06/0.00481, allocations: 0 / 297 MB, free: 1.922 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.756e-06/0.004813, allocations: 0 / 297 MB, free: 1.922 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.533e-05/0.004828, allocations: 4 kB / 297 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.004836, allocations: 0 / 297 MB, free: 1.918 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 5.621e-05/0.004892, allocations: 135.5 kB / 297.1 MB, free: 1.77 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.248e-06/0.004896, allocations: 7.984 kB / 297.1 MB, free: 1.762 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.562e-06/0.004903, allocations: 7.031 kB / 297.1 MB, free: 1.758 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.71e-07/0.004904, allocations: 0 / 297.1 MB, free: 1.758 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-06/0.004905, allocations: 0 / 297.1 MB, free: 1.758 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-06/0.004907, allocations: 3.938 kB / 297.1 MB, free: 1.754 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.585e-05/0.004953, allocations: 65.84 kB / 297.2 MB, free: 1.672 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.004953, allocations: 0 / 297.2 MB, free: 1.672 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-07/0.004954, allocations: 0 / 297.2 MB, free: 1.672 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.875e-06/0.004957, allocations: 0 / 297.2 MB, free: 1.672 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.41e-07/0.004957, allocations: 0 / 297.2 MB, free: 1.672 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.196e-06/0.004961, allocations: 4 kB / 297.2 MB, free: 1.668 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.004963, allocations: 7.984 kB / 297.2 MB, free: 1.66 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.11e-07/0.004964, allocations: 7.938 kB / 297.2 MB, free: 1.652 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.702e-05/0.005021, allocations: 112.5 kB / 297.3 MB, free: 1.512 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.005032, allocations: 7.984 kB / 297.3 MB, free: 1.504 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.359e-06/0.005037, allocations: 0 / 297.3 MB, free: 1.504 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.625e-06/0.005044, allocations: 0 / 297.3 MB, free: 1.504 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-06/0.005046, allocations: 0 / 297.3 MB, free: 1.504 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.913e-06/0.005053, allocations: 4.859 kB / 297.3 MB, free: 1.496 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005053, allocations: 0 / 297.3 MB, free: 1.496 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001399/0.005193, allocations: 31.94 kB / 297.3 MB, free: 1.465 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.0005803/0.005773, allocations: 347.5 kB / 297.7 MB, free: 1.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.747e-05/0.00587, allocations: 115.7 kB / 297.8 MB, free: 1.109 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.005875, allocations: 0 / 297.8 MB, free: 1.109 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.174e-05/0.005906, allocations: 98.05 kB / 297.9 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.087e-05/0.005957, allocations: 7.938 kB / 297.9 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001365/0.006094, allocations: 109.4 kB / 298 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.451e-05/0.006118, allocations: 55.36 kB / 298.1 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.239e-06/0.006123, allocations: 3.938 kB / 298.1 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.022e-05/0.006154, allocations: 51.38 kB / 298.1 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of SimCode: time 4.81e-07/0.006154, allocations: 0 / 298.1 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of Templates: time 0.002535/0.008689, allocations: 1.198 MB / 299.3 MB, free: 15.52 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8168700421229005]