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: 85.91 kB / 22.22 MB, free: 2.285 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.001458/0.001458, allocations: 162.5 kB / 25.61 MB, free: 8.879 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.9229/0.9229, allocations: 177 MB / 205.9 MB, free: 4.426 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.1721/0.1721, allocations: 34.87 MB / 297.4 MB, free: 13.34 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.944e-06/1.944e-06, allocations: 0 / 380 MB, free: 22.78 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.929e-05/3.123e-05, allocations: 6.844 kB / 380 MB, free: 22.78 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00126/0.001292, allocations: 0.4949 MB / 380.5 MB, free: 22.29 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005094/0.001801, allocations: 297 kB / 380.8 MB, free: 22 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.299e-05/0.001824, allocations: 0 / 380.8 MB, free: 22 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.641e-05/0.00184, allocations: 0 / 380.8 MB, free: 22 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.142e-06/0.001846, allocations: 0 / 380.8 MB, free: 22 MB / 314.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.0007784/0.002625, allocations: 105.5 kB / 380.9 MB, free: 21.9 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.492e-05/0.00267, allocations: 7.984 kB / 380.9 MB, free: 21.89 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.136e-05/0.002701, allocations: 4 kB / 380.9 MB, free: 21.89 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.269e-05/0.002724, allocations: 0 / 380.9 MB, free: 21.89 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.836e-05/0.002742, allocations: 0 / 380.9 MB, free: 21.89 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.101e-06/0.002748, allocations: 4 kB / 380.9 MB, free: 21.89 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001525/0.002901, allocations: 111.8 kB / 381 MB, free: 21.78 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.243e-06/0.002908, allocations: 0 / 381 MB, free: 21.78 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.373e-05/0.002922, allocations: 0 / 381 MB, free: 21.78 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.003075, allocations: 107.7 kB / 381.1 MB, free: 21.67 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.003077, allocations: 0 / 381.1 MB, free: 21.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.003078, allocations: 0 / 381.1 MB, free: 21.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.947e-06/0.003082, allocations: 0 / 381.1 MB, free: 21.67 MB / 314.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.0002077/0.00329, allocations: 397.8 kB / 381.5 MB, free: 21.24 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.063e-05/0.00332, allocations: 8.031 kB / 381.5 MB, free: 21.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.398e-05/0.003344, allocations: 4.938 kB / 381.5 MB, free: 21.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.311e-05/0.003397, allocations: 108.6 kB / 381.6 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.003407, allocations: 384 / 381.6 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.15e-06/0.003412, allocations: 384 / 381.6 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.669e-05/0.003469, allocations: 59.91 kB / 381.7 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.003476, allocations: 192 / 381.7 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.779e-06/0.003481, allocations: 384 / 381.7 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.003486, allocations: 384 / 381.7 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.063e-05/0.003496, allocations: 37.62 kB / 381.7 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.288e-05/0.003549, allocations: 93.27 kB / 381.8 MB, free: 20.86 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.009e-05/0.003579, allocations: 56.8 kB / 381.8 MB, free: 20.79 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.899e-06/0.003589, allocations: 41.39 kB / 381.9 MB, free: 20.74 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-06/0.003592, allocations: 0 / 381.9 MB, free: 20.74 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.003613, allocations: 67.09 kB / 382 MB, free: 20.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 5.51e-07/0.003613, allocations: 0 / 382 MB, free: 20.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001203/0.003733, allocations: 114.8 kB / 382.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.08e-05/0.003754, allocations: 77.11 kB / 382.1 MB, free: 20.43 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.263e-05/0.003777, allocations: 142.2 kB / 382.3 MB, free: 20.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.172e-06/0.003783, allocations: 29.7 kB / 382.3 MB, free: 20.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.057e-05/0.003794, allocations: 126.9 kB / 382.4 MB, free: 20.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.373e-05/0.003807, allocations: 0 / 382.4 MB, free: 20.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.919e-05/0.003826, allocations: 19.5 kB / 382.5 MB, free: 20.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.231e-05/0.003869, allocations: 0.4961 MB / 382.9 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.163e-05/0.00388, allocations: 25.7 kB / 383 MB, free: 19.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.596e-06/0.003889, allocations: 29.64 kB / 383 MB, free: 19.51 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.078e-05/0.00392, allocations: 71.02 kB / 383.1 MB, free: 19.42 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.003922, allocations: 0 / 383.1 MB, free: 19.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.382e-05/0.003965, allocations: 89.09 kB / 383.2 MB, free: 19.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.003985, allocations: 29.7 kB / 383.2 MB, free: 19.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.00399, allocations: 4 kB / 383.2 MB, free: 19.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.003999, allocations: 8.078 kB / 383.2 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.323e-06/0.004001, allocations: 0 / 383.2 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.535e-06/0.004003, allocations: 3.984 kB / 383.2 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.407e-06/0.004013, allocations: 0 / 383.2 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-06/0.004018, allocations: 0 / 383.2 MB, free: 19.27 MB / 314.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 4.227e-05/0.00406, allocations: 194.2 kB / 383.4 MB, free: 19.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.13e-06/0.004065, allocations: 352 / 383.4 MB, free: 19.06 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.244e-06/0.004072, allocations: 10.94 kB / 383.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.004074, allocations: 4 kB / 383.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.004075, allocations: 0 / 383.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.004078, allocations: 4 kB / 383.4 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.607e-05/0.004114, allocations: 97.14 kB / 383.5 MB, free: 18.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.004114, allocations: 0 / 383.5 MB, free: 18.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.004115, allocations: 0 / 383.5 MB, free: 18.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.11e-07/0.004116, allocations: 4 kB / 383.5 MB, free: 18.92 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.527e-06/0.004119, allocations: 0 / 383.5 MB, free: 18.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-07/0.00412, allocations: 0 / 383.5 MB, free: 18.92 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.00412, allocations: 0 / 383.5 MB, free: 18.92 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.757e-05/0.004178, allocations: 131.7 kB / 383.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-06/0.004182, allocations: 0 / 383.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.025e-05/0.004192, allocations: 7.984 kB / 383.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.138e-06/0.004196, allocations: 4.031 kB / 383.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.776e-06/0.004205, allocations: 4 kB / 383.7 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-06/0.004207, allocations: 0 / 383.7 MB, free: 18.74 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.416e-05/0.004221, allocations: 123.2 kB / 383.8 MB, free: 18.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004221, allocations: 3.938 kB / 383.8 MB, free: 18.61 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001656/0.004386, allocations: 27.94 kB / 383.8 MB, free: 18.59 MB / 314.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.0004206/0.004807, allocations: 290 kB / 384.1 MB, free: 18.37 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.286e-05/0.00488, allocations: 118.5 kB / 384.2 MB, free: 18.22 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.004881, allocations: 4 kB / 384.2 MB, free: 18.22 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.376e-05/0.004895, allocations: 84.8 kB / 384.3 MB, free: 18.11 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.121e-05/0.004976, allocations: 7.938 kB / 384.3 MB, free: 18.11 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001232/0.0051, allocations: 115.6 kB / 384.4 MB, free: 17.96 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.734e-05/0.005117, allocations: 63.33 kB / 384.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.86e-06/0.005122, allocations: 0 / 384.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.394e-05/0.005146, allocations: 70.2 kB / 384.5 MB, free: 17.8 MB / 314.7 MB Notification: Performance of SimCode: time 4.41e-07/0.005146, allocations: 0 / 384.5 MB, free: 17.8 MB / 314.7 MB Notification: Performance of Templates: time 0.002399/0.007545, allocations: 1.165 MB / 385.7 MB, free: 16.64 MB / 314.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.1595560391433537]