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.00137/0.00137, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001706/0.001706, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 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.008/1.008, allocations: 177 MB / 204.8 MB, free: 5.598 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.2983/0.2983, allocations: 34.87 MB / 296.3 MB, free: 0.5312 MB / 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 2.124e-06/2.124e-06, allocations: 0 / 378.7 MB, free: 2.148 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.654e-05/2.866e-05, allocations: 6.312 kB / 378.7 MB, free: 2.141 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001758/0.001787, allocations: 499.1 kB / 379.2 MB, free: 1.652 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008424/0.002629, allocations: 307.2 kB / 379.5 MB, free: 1.352 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.7e-05/0.002656, allocations: 4 kB / 379.5 MB, free: 1.348 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.638e-05/0.002683, allocations: 0 / 379.5 MB, free: 1.348 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.849e-06/0.002693, allocations: 0 / 379.5 MB, free: 1.348 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.00104/0.003733, allocations: 115.4 kB / 379.6 MB, free: 1.246 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.856e-05/0.003801, allocations: 0 / 379.6 MB, free: 1.246 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.158e-05/0.003843, allocations: 4 kB / 379.6 MB, free: 1.242 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.411e-05/0.003877, allocations: 0 / 379.6 MB, free: 1.242 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.774e-05/0.003905, allocations: 0 / 379.6 MB, free: 1.242 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.928e-06/0.003915, allocations: 3.938 kB / 379.6 MB, free: 1.238 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002455/0.00416, allocations: 111.8 kB / 379.8 MB, free: 1.129 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.749e-06/0.00417, allocations: 0 / 379.8 MB, free: 1.129 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.483e-05/0.004195, allocations: 7.938 kB / 379.8 MB, free: 1.121 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002407/0.004436, allocations: 107.7 kB / 379.9 MB, free: 1.016 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.004439, allocations: 4 kB / 379.9 MB, free: 1.012 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.00444, allocations: 0 / 379.9 MB, free: 1.012 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.004446, allocations: 0 / 379.9 MB, free: 1.012 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.0003203/0.004766, allocations: 385.9 kB / 380.2 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.004806, allocations: 8.031 kB / 380.3 MB, free: 0.582 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.113e-05/0.004847, allocations: 0.9375 kB / 380.3 MB, free: 0.582 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.237e-05/0.004909, allocations: 112.6 kB / 380.4 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.004922, allocations: 384 / 380.4 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.004932, allocations: 4.375 kB / 380.4 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.532e-05/0.005027, allocations: 59.91 kB / 380.4 MB, free: 380 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.005035, allocations: 192 / 380.4 MB, free: 380 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.005045, allocations: 384 / 380.4 MB, free: 380 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.005054, allocations: 4.359 kB / 380.4 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.487e-05/0.005079, allocations: 37.58 kB / 380.5 MB, free: 332 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001014/0.00518, allocations: 112.6 kB / 380.6 MB, free: 184 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.699e-05/0.005237, allocations: 52.8 kB / 380.6 MB, free: 112 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.166e-05/0.005259, allocations: 37.39 kB / 380.7 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.659e-06/0.005263, allocations: 0 / 380.7 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.051e-05/0.005314, allocations: 71.14 kB / 380.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 2.294e-06/0.005316, allocations: 3.984 kB / 380.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.000197/0.005513, allocations: 114.8 kB / 380.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.005555, allocations: 77.11 kB / 380.9 MB, free: 15.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.471e-05/0.005609, allocations: 146.2 kB / 381.1 MB, free: 15.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.818e-06/0.005619, allocations: 25.7 kB / 381.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.504e-05/0.005654, allocations: 130.9 kB / 381.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.213e-05/0.005676, allocations: 4.344 kB / 381.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.005704, allocations: 15.38 kB / 381.2 MB, free: 15.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.005835, allocations: 496.1 kB / 381.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.551e-05/0.005861, allocations: 33.83 kB / 381.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.676e-05/0.005877, allocations: 25.7 kB / 381.8 MB, free: 14.83 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.566e-05/0.005933, allocations: 67.09 kB / 381.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.005935, allocations: 3.938 kB / 381.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.119e-05/0.006016, allocations: 93.05 kB / 381.9 MB, free: 14.63 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/0.006049, allocations: 29.7 kB / 382 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.006056, allocations: 0 / 382 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.006075, allocations: 4 kB / 382 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.158e-06/0.006079, allocations: 0 / 382 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.006086, allocations: 96 / 382 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.742e-05/0.006103, allocations: 7.938 kB / 382 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.006111, allocations: 0 / 382 MB, free: 14.59 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 9.811e-05/0.006209, allocations: 190.3 kB / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.311e-06/0.006215, allocations: 0 / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.285e-05/0.006228, allocations: 3 kB / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.006231, allocations: 4 kB / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.006236, allocations: 0 / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.00624, allocations: 3.938 kB / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.636e-05/0.006306, allocations: 112.6 kB / 382.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.006309, allocations: 3.984 kB / 382.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.623e-06/0.006311, allocations: 8 kB / 382.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.006313, allocations: 4 kB / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.211e-06/0.00632, allocations: 0 / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.006321, allocations: 3.938 kB / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.006322, allocations: 0 / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001049/0.006427, allocations: 131.8 kB / 382.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.037e-06/0.006431, allocations: 0 / 382.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.006448, allocations: 4 kB / 382.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.055e-06/0.006456, allocations: 0 / 382.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.369e-05/0.006469, allocations: 0 / 382.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.006471, allocations: 4.031 kB / 382.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.154e-05/0.006503, allocations: 119.2 kB / 382.6 MB, free: 13.92 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006503, allocations: 4 kB / 382.6 MB, free: 13.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001797/0.006683, allocations: 35.92 kB / 382.6 MB, free: 13.88 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.0005242/0.007207, allocations: 283.2 kB / 382.9 MB, free: 13.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001224/0.007329, allocations: 126.4 kB / 383 MB, free: 13.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.007333, allocations: 4 kB / 383 MB, free: 13.49 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.021e-05/0.007363, allocations: 84.8 kB / 383.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.424e-05/0.007457, allocations: 4 kB / 383.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002034/0.007661, allocations: 117.6 kB / 383.2 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.238e-05/0.007693, allocations: 51.36 kB / 383.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.771e-06/0.007699, allocations: 3.938 kB / 383.3 MB, free: 13.15 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.619e-05/0.007715, allocations: 16.62 kB / 383.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of SimCode: time 1.232e-06/0.007716, allocations: 0 / 383.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of Templates: time 0.003008/0.01072, allocations: 1.024 MB / 384.3 MB, free: 12.11 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.2021032101474702]