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.00102/0.00102, allocations: 83.67 kB / 21.7 MB, free: 2.844 MB / 18.57 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.000979/0.000979, allocations: 162.9 kB / 24.99 MB, free: 9.277 MB / 18.57 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 1.06/1.06, allocations: 177 MB / 205.2 MB, free: 5.57 MB / 186.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.339/0.339, allocations: 34.87 MB / 296.6 MB, free: 0.5508 MB / 266.7 MB " [Timeout remaining time 179] 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 3.547e-06/3.547e-06, allocations: 0 / 378.7 MB, free: 2.43 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 5.199e-05/5.554e-05, allocations: 10.25 kB / 378.7 MB, free: 2.418 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002648/0.002704, allocations: 490.5 kB / 379.2 MB, free: 1.938 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.003752, allocations: 307.1 kB / 379.5 MB, free: 1.637 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.406e-05/0.003796, allocations: 0 / 379.5 MB, free: 1.637 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.822e-05/0.003824, allocations: 3.938 kB / 379.5 MB, free: 1.633 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.2e-05/0.003836, allocations: 4 kB / 379.5 MB, free: 1.629 MB / 346.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.00137/0.005206, allocations: 112.5 kB / 379.6 MB, free: 1.527 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 9.547e-05/0.005302, allocations: 4 kB / 379.6 MB, free: 1.523 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.895e-05/0.00536, allocations: 0 / 379.6 MB, free: 1.523 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.579e-05/0.005406, allocations: 3.984 kB / 379.6 MB, free: 1.52 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.59e-05/0.005442, allocations: 0 / 379.6 MB, free: 1.52 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.29e-05/0.005455, allocations: 0 / 379.6 MB, free: 1.52 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002957/0.005751, allocations: 107.8 kB / 379.7 MB, free: 1.414 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.493e-05/0.005766, allocations: 0 / 379.7 MB, free: 1.414 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.582e-05/0.005801, allocations: 0 / 379.7 MB, free: 1.414 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003719/0.006173, allocations: 115.7 kB / 379.9 MB, free: 1.301 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.00618, allocations: 4 kB / 379.9 MB, free: 1.297 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.006182, allocations: 0 / 379.9 MB, free: 1.297 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.00619, allocations: 0 / 379.9 MB, free: 1.297 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.0004928/0.006683, allocations: 385.9 kB / 380.2 MB, free: 0.875 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.019e-05/0.006743, allocations: 8.031 kB / 380.2 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.304e-05/0.006806, allocations: 4.938 kB / 380.2 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.00692, allocations: 104.6 kB / 380.3 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.006939, allocations: 384 / 380.3 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.006953, allocations: 4.312 kB / 380.4 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001697/0.007123, allocations: 67.94 kB / 380.4 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.007133, allocations: 8.188 kB / 380.4 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.007147, allocations: 384 / 380.4 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.007159, allocations: 384 / 380.4 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.21e-05/0.007191, allocations: 33.64 kB / 380.5 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001781/0.007369, allocations: 112.6 kB / 380.6 MB, free: 472 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.914e-05/0.007459, allocations: 52.8 kB / 380.6 MB, free: 400 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.915e-05/0.007498, allocations: 45.25 kB / 380.7 MB, free: 344 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.011e-05/0.007508, allocations: 4.062 kB / 380.7 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.133e-05/0.007579, allocations: 63.09 kB / 380.7 MB, free: 260 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 2.154e-06/0.007581, allocations: 0 / 380.7 MB, free: 260 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0003019/0.007883, allocations: 118.8 kB / 380.8 MB, free: 116 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.061e-05/0.007954, allocations: 77.11 kB / 380.9 MB, free: 20 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.008057, allocations: 146.2 kB / 381.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.008075, allocations: 25.7 kB / 381.1 MB, free: 15.83 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.893e-05/0.008124, allocations: 126.9 kB / 381.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.607e-05/0.00816, allocations: 4.344 kB / 381.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.986e-05/0.00821, allocations: 19.38 kB / 381.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.008415, allocations: 496.1 kB / 381.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.651e-05/0.008461, allocations: 29.64 kB / 381.7 MB, free: 15.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.479e-05/0.008486, allocations: 29.7 kB / 381.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.616e-05/0.008572, allocations: 67.27 kB / 381.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.008575, allocations: 0 / 381.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001371/0.008712, allocations: 93.06 kB / 381.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.728e-05/0.00877, allocations: 37.69 kB / 382 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.008779, allocations: 0 / 382 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.0088, allocations: 0 / 382 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.485e-06/0.008803, allocations: 0 / 382 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-06/0.008812, allocations: 0 / 382 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.523e-05/0.008837, allocations: 3.938 kB / 382 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.008852, allocations: 4 kB / 382 MB, free: 14.86 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 0.0001248/0.008977, allocations: 186.2 kB / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.764e-05/0.008994, allocations: 4 kB / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.728e-05/0.009012, allocations: 3 kB / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.009015, allocations: 0 / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.00902, allocations: 0 / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.009025, allocations: 0 / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.009132, allocations: 120.6 kB / 382.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.009135, allocations: 0 / 382.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.994e-06/0.009137, allocations: 0 / 382.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.00914, allocations: 0 / 382.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.009152, allocations: 4 kB / 382.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.009154, allocations: 0 / 382.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.009156, allocations: 3.938 kB / 382.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001711/0.009327, allocations: 135.8 kB / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.323e-06/0.009334, allocations: 0 / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.009357, allocations: 0 / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.488e-05/0.009372, allocations: 4 kB / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.168e-05/0.009393, allocations: 11.92 kB / 382.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.009398, allocations: 0 / 382.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.622e-05/0.009444, allocations: 119.2 kB / 382.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.009444, allocations: 0 / 382.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003148/0.009759, allocations: 35.95 kB / 382.6 MB, free: 14.16 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.0008594/0.01062, allocations: 280.1 kB / 382.9 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002033/0.01082, allocations: 122.5 kB / 383 MB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.01083, allocations: 0 / 383 MB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.275e-05/0.01089, allocations: 96.78 kB / 383.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001612/0.01105, allocations: 0 / 383.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003432/0.01139, allocations: 113.7 kB / 383.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.685e-05/0.01145, allocations: 55.36 kB / 383.2 MB, free: 13.44 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.977e-06/0.01146, allocations: 3.938 kB / 383.3 MB, free: 13.44 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.888e-05/0.01149, allocations: 12.48 kB / 383.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of SimCode: time 1.573e-06/0.01149, allocations: 0 / 383.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of Templates: time 0.004781/0.01627, allocations: 1.021 MB / 384.3 MB, free: 12.41 MB / 362.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 -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: 3.5446878080256283]