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.001091/0.001091, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001276/0.001276, allocations: 163.4 kB / 24.91 MB, free: 8.715 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 0.9542/0.9542, allocations: 177 MB / 205.2 MB, free: 5.059 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.2697/0.2697, allocations: 34.85 MB / 296.6 MB, free: 492 kB / 266.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.763e-06/1.763e-06, allocations: 0 / 325.9 MB, free: 7.219 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.979e-05/3.155e-05, allocations: 5.406 kB / 325.9 MB, free: 7.215 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001275/0.001306, allocations: 0.4905 MB / 326.4 MB, free: 6.727 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000551/0.001857, allocations: 307 kB / 326.7 MB, free: 6.426 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.825e-05/0.001876, allocations: 0 / 326.7 MB, free: 6.426 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.871e-05/0.001894, allocations: 0 / 326.7 MB, free: 6.426 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.615e-06/0.001902, allocations: 0 / 326.7 MB, free: 6.426 MB / 298.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.0008282/0.00273, allocations: 109.6 kB / 326.8 MB, free: 6.324 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.15e-05/0.002792, allocations: 8.625 kB / 326.8 MB, free: 6.316 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.179e-05/0.002833, allocations: 0 / 326.8 MB, free: 6.316 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.922e-05/0.002873, allocations: 4 kB / 326.8 MB, free: 6.312 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.532e-05/0.002898, allocations: 3.984 kB / 326.8 MB, free: 6.309 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.002906, allocations: 3.938 kB / 326.8 MB, free: 6.305 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001946/0.003101, allocations: 111.8 kB / 326.9 MB, free: 6.195 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.063e-05/0.003111, allocations: 0 / 326.9 MB, free: 6.195 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.66e-05/0.003128, allocations: 0 / 326.9 MB, free: 6.195 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001992/0.003327, allocations: 100.5 kB / 327 MB, free: 6.098 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.00333, allocations: 0 / 327 MB, free: 6.098 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.003333, allocations: 4 kB / 327 MB, free: 6.094 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.003338, allocations: 4 kB / 327 MB, free: 6.09 MB / 298.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.000263/0.003601, allocations: 266.2 kB / 327.3 MB, free: 5.797 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.003636, allocations: 8.031 kB / 327.3 MB, free: 5.789 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.595e-05/0.003662, allocations: 0.9375 kB / 327.3 MB, free: 5.789 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.894e-05/0.003721, allocations: 117.7 kB / 327.4 MB, free: 5.648 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-06/0.00373, allocations: 384 / 327.4 MB, free: 5.648 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.003738, allocations: 384 / 327.4 MB, free: 5.648 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.208e-05/0.003811, allocations: 55.97 kB / 327.5 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.003821, allocations: 192 / 327.5 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.292e-06/0.003827, allocations: 384 / 327.5 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.003832, allocations: 4.375 kB / 327.5 MB, free: 5.578 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.615e-05/0.003848, allocations: 33.64 kB / 327.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.283e-05/0.003921, allocations: 61.03 kB / 327.5 MB, free: 5.465 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.647e-05/0.003967, allocations: 48.25 kB / 327.6 MB, free: 5.402 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.778e-05/0.003985, allocations: 30.56 kB / 327.6 MB, free: 5.363 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.839e-06/0.00399, allocations: 3.984 kB / 327.6 MB, free: 5.359 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.934e-05/0.004029, allocations: 64.33 kB / 327.7 MB, free: 5.281 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.00403, allocations: 0 / 327.7 MB, free: 5.281 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001291/0.004159, allocations: 110.8 kB / 327.8 MB, free: 5.148 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.004202, allocations: 85.17 kB / 327.9 MB, free: 5.047 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.594e-05/0.004238, allocations: 93.86 kB / 328 MB, free: 4.945 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.738e-06/0.004248, allocations: 25.7 kB / 328 MB, free: 4.914 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.24e-05/0.00427, allocations: 80.14 kB / 328.1 MB, free: 4.832 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.004288, allocations: 1.375 kB / 328.1 MB, free: 4.832 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.597e-05/0.004314, allocations: 13.72 kB / 328.1 MB, free: 4.812 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.952e-05/0.004403, allocations: 314.8 kB / 328.4 MB, free: 4.496 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.938e-05/0.004423, allocations: 29.69 kB / 328.4 MB, free: 4.461 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.435e-05/0.004437, allocations: 29.7 kB / 328.5 MB, free: 4.426 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.746e-05/0.004485, allocations: 60.27 kB / 328.5 MB, free: 4.352 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.004487, allocations: 4.062 kB / 328.5 MB, free: 4.348 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.153e-05/0.004548, allocations: 89.09 kB / 328.6 MB, free: 4.242 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.224e-05/0.00458, allocations: 29.7 kB / 328.6 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.004586, allocations: 7.938 kB / 328.6 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.004598, allocations: 0 / 328.6 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.699e-06/0.004602, allocations: 0 / 328.6 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.276e-06/0.004606, allocations: 0 / 328.6 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.105e-05/0.004617, allocations: 0 / 328.6 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.004624, allocations: 3.938 kB / 328.6 MB, free: 4.195 MB / 298.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 7.445e-05/0.004698, allocations: 143.5 kB / 328.8 MB, free: 4.039 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.471e-06/0.004704, allocations: 4.031 kB / 328.8 MB, free: 4.035 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.226e-05/0.004716, allocations: 10.98 kB / 328.8 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.004718, allocations: 0 / 328.8 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.00472, allocations: 0 / 328.8 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.004723, allocations: 0 / 328.8 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.1e-05/0.004774, allocations: 61.84 kB / 328.9 MB, free: 3.949 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.004775, allocations: 0 / 328.9 MB, free: 3.949 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.034e-06/0.004777, allocations: 4 kB / 328.9 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.71e-07/0.004778, allocations: 0 / 328.9 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.128e-06/0.004782, allocations: 0 / 328.9 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.004783, allocations: 4 kB / 328.9 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.004784, allocations: 4 kB / 328.9 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.55e-05/0.00486, allocations: 116.4 kB / 329 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.384e-06/0.004867, allocations: 4.344 kB / 329 MB, free: 3.789 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.004879, allocations: 0 / 329 MB, free: 3.789 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.929e-06/0.004884, allocations: 0 / 329 MB, free: 3.789 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.489e-05/0.004899, allocations: 7.984 kB / 329 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.004903, allocations: 4 kB / 329 MB, free: 3.777 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.585e-06/0.004911, allocations: 4.859 kB / 329 MB, free: 3.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004911, allocations: 0 / 329 MB, free: 3.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001406/0.005051, allocations: 27.94 kB / 329 MB, free: 3.742 MB / 298.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.000695/0.005746, allocations: 301.5 kB / 329.3 MB, free: 3.543 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001281/0.005874, allocations: 119.6 kB / 329.4 MB, free: 3.398 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.005879, allocations: 4 kB / 329.5 MB, free: 3.395 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.027e-05/0.005909, allocations: 90.03 kB / 329.5 MB, free: 3.285 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.278e-05/0.005962, allocations: 11.92 kB / 329.6 MB, free: 3.273 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001691/0.006131, allocations: 116.8 kB / 329.7 MB, free: 3.125 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.057e-05/0.006162, allocations: 51.36 kB / 329.7 MB, free: 3.055 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.081e-06/0.006168, allocations: 0 / 329.7 MB, free: 3.055 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.103e-05/0.006209, allocations: 55.36 kB / 329.8 MB, free: 3 MB / 298.7 MB Notification: Performance of SimCode: time 6.91e-07/0.00621, allocations: 0 / 329.8 MB, free: 3 MB / 298.7 MB Notification: Performance of Templates: time 0.003087/0.009297, allocations: 1.17 MB / 330.9 MB, free: 1.84 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 -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.831996808759868]