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.001063/0.001063, allocations: 95.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.0009549/0.0009549, 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 0.8859/0.8859, allocations: 177 MB / 204.8 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.2582/0.2582, allocations: 34.87 MB / 296.3 MB, free: 0.5625 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 1.233e-06/1.233e-06, allocations: 0 / 378.7 MB, free: 2.137 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.247e-05/2.371e-05, allocations: 3.859 kB / 378.7 MB, free: 2.133 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0009588/0.0009825, allocations: 493 kB / 379.2 MB, free: 1.648 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005757/0.001558, allocations: 307.2 kB / 379.5 MB, free: 1.348 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.949e-05/0.001578, allocations: 0 / 379.5 MB, free: 1.348 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.12e-05/0.001599, allocations: 0 / 379.5 MB, free: 1.348 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.823e-06/0.001606, allocations: 3.938 kB / 379.5 MB, free: 1.344 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.0007214/0.002327, allocations: 108.6 kB / 379.6 MB, free: 1.246 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.168e-05/0.002399, allocations: 7.938 kB / 379.6 MB, free: 1.238 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.71e-05/0.002436, allocations: 3.984 kB / 379.6 MB, free: 1.234 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.593e-05/0.002462, allocations: 0 / 379.6 MB, free: 1.234 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.174e-05/0.002484, allocations: 0 / 379.6 MB, free: 1.234 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.765e-06/0.002491, allocations: 0 / 379.6 MB, free: 1.234 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.002664, allocations: 115.8 kB / 379.8 MB, free: 1.121 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.228e-06/0.002674, allocations: 0 / 379.8 MB, free: 1.121 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.856e-05/0.002692, allocations: 0 / 379.8 MB, free: 1.121 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001815/0.002874, allocations: 115.7 kB / 379.9 MB, free: 1.008 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.002876, allocations: 0 / 379.9 MB, free: 1.008 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.002876, allocations: 0 / 379.9 MB, free: 1.008 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.00288, allocations: 0 / 379.9 MB, free: 1.008 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.0002924/0.003173, allocations: 385.9 kB / 380.2 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.003214, allocations: 8.031 kB / 380.3 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.727e-05/0.003251, allocations: 4.938 kB / 380.3 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.792e-05/0.003309, allocations: 108.6 kB / 380.4 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.00332, allocations: 4.375 kB / 380.4 MB, free: 448 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.276e-06/0.003328, allocations: 4.359 kB / 380.4 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.023e-05/0.003408, allocations: 59.97 kB / 380.4 MB, free: 372 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.003416, allocations: 8.125 kB / 380.4 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/0.003424, allocations: 384 / 380.4 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.003431, allocations: 384 / 380.4 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.92e-05/0.00345, allocations: 33.64 kB / 380.5 MB, free: 324 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.311e-05/0.003533, allocations: 112.6 kB / 380.6 MB, free: 176 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.391e-05/0.003577, allocations: 56.78 kB / 380.6 MB, free: 100 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.586e-05/0.003593, allocations: 33.39 kB / 380.7 MB, free: 56 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.018e-06/0.003597, allocations: 7.938 kB / 380.7 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/0.003643, allocations: 67.16 kB / 380.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.003644, allocations: 0 / 380.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001639/0.003807, allocations: 118.7 kB / 380.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.003842, allocations: 77.11 kB / 380.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.817e-05/0.00388, allocations: 142.2 kB / 381.1 MB, free: 15.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.628e-06/0.00389, allocations: 29.7 kB / 381.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.58e-05/0.003915, allocations: 126.9 kB / 381.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.497e-05/0.00393, allocations: 4.344 kB / 381.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.071e-05/0.003951, allocations: 15.5 kB / 381.2 MB, free: 15.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.004057, allocations: 0.4922 MB / 381.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.693e-05/0.004074, allocations: 29.69 kB / 381.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.073e-05/0.004085, allocations: 25.7 kB / 381.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.181e-05/0.004127, allocations: 67.03 kB / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.004128, allocations: 0 / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.413e-05/0.004182, allocations: 93.06 kB / 381.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.004207, allocations: 37.69 kB / 382 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.004212, allocations: 0 / 382 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.004223, allocations: 0 / 382 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.458e-06/0.004227, allocations: 4.094 kB / 382 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.004231, allocations: 0 / 382 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.048e-05/0.004242, allocations: 3.938 kB / 382 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/0.004251, allocations: 4 kB / 382 MB, free: 14.57 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 6.7e-05/0.004318, allocations: 178.3 kB / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.491e-06/0.004323, allocations: 4 kB / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.644e-06/0.004331, allocations: 3 kB / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.004333, allocations: 3.984 kB / 382.2 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.004336, allocations: 0 / 382.2 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.004339, allocations: 0 / 382.2 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.14e-05/0.00439, allocations: 116.6 kB / 382.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.004391, allocations: 7.938 kB / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.11e-07/0.004391, allocations: 0 / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.004392, allocations: 0 / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.004398, allocations: 0 / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.004399, allocations: 0 / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.0044, allocations: 0 / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.669e-05/0.004476, allocations: 135.7 kB / 382.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.687e-06/0.00448, allocations: 4 kB / 382.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.004493, allocations: 0 / 382.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.23e-06/0.004498, allocations: 4.031 kB / 382.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.336e-05/0.004511, allocations: 7.984 kB / 382.4 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.004515, allocations: 4 kB / 382.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.167e-05/0.004547, allocations: 119.2 kB / 382.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004547, allocations: 0 / 382.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001725/0.00472, allocations: 27.94 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.0004652/0.005185, allocations: 293.2 kB / 382.9 MB, free: 13.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.987e-05/0.005285, allocations: 122.4 kB / 383 MB, free: 13.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.005287, allocations: 0 / 383 MB, free: 13.49 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.49e-05/0.005322, allocations: 96.78 kB / 383.1 MB, free: 13.37 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.623e-05/0.005408, allocations: 0 / 383.1 MB, free: 13.37 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001772/0.005585, allocations: 113.7 kB / 383.2 MB, free: 13.22 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.269e-05/0.005618, allocations: 59.34 kB / 383.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.68e-06/0.005623, allocations: 4.125 kB / 383.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.517e-05/0.005639, allocations: 8.5 kB / 383.3 MB, free: 13.13 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.005639, allocations: 0 / 383.3 MB, free: 13.13 MB / 362.7 MB Notification: Performance of Templates: time 0.002694/0.008333, allocations: 1.153 MB / 384.4 MB, free: 11.98 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: 2.9427637751214206]