Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 77.97 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 171.3 kB / 24.82 MB, free: 9.266 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.068/1.068, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.284/0.284, allocations: 32.8 MB / 294.6 MB, free: 1.246 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 376.4 MB, free: 4.457 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.536e-05/2.697e-05, allocations: 9.062 kB / 376.4 MB, free: 4.449 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001461/0.001488, allocations: 0.4928 MB / 376.9 MB, free: 3.957 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005382/0.002027, allocations: 307.2 kB / 377.2 MB, free: 3.656 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.087e-05/0.002047, allocations: 0 / 377.2 MB, free: 3.656 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.649e-05/0.002064, allocations: 0 / 377.2 MB, free: 3.656 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.101e-06/0.00207, allocations: 0 / 377.2 MB, free: 3.656 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288: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.0007406/0.002811, allocations: 115.6 kB / 377.4 MB, free: 3.555 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.745e-05/0.002858, allocations: 0 / 377.4 MB, free: 3.555 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.14e-05/0.002889, allocations: 0 / 377.4 MB, free: 3.555 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.025e-05/0.00292, allocations: 7.938 kB / 377.4 MB, free: 3.547 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.089e-05/0.002941, allocations: 3.984 kB / 377.4 MB, free: 3.543 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.855e-06/0.002948, allocations: 4 kB / 377.4 MB, free: 3.539 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001814/0.00313, allocations: 107.8 kB / 377.5 MB, free: 3.434 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.538e-06/0.003139, allocations: 4 kB / 377.5 MB, free: 3.43 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.631e-05/0.003156, allocations: 7.984 kB / 377.5 MB, free: 3.422 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.003348, allocations: 99.73 kB / 377.6 MB, free: 3.324 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.00335, allocations: 0 / 377.6 MB, free: 3.324 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.003351, allocations: 0 / 377.6 MB, free: 3.324 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.003356, allocations: 0 / 377.6 MB, free: 3.324 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.0002802/0.003637, allocations: 389.8 kB / 378 MB, free: 2.898 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.003672, allocations: 12.03 kB / 378 MB, free: 2.887 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.299e-05/0.003695, allocations: 4.938 kB / 378 MB, free: 2.883 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.708e-05/0.003752, allocations: 112.6 kB / 378.1 MB, free: 2.746 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.826e-06/0.003761, allocations: 4.375 kB / 378.1 MB, free: 2.742 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.109e-06/0.003766, allocations: 384 / 378.1 MB, free: 2.742 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.698e-05/0.003833, allocations: 59.97 kB / 378.2 MB, free: 2.672 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-06/0.00384, allocations: 192 / 378.2 MB, free: 2.672 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.079e-06/0.003845, allocations: 384 / 378.2 MB, free: 2.672 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.00385, allocations: 384 / 378.2 MB, free: 2.672 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.869e-05/0.003868, allocations: 33.58 kB / 378.2 MB, free: 2.633 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.713e-05/0.003945, allocations: 97.27 kB / 378.3 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.309e-05/0.003988, allocations: 56.75 kB / 378.3 MB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.754e-05/0.004006, allocations: 37.48 kB / 378.4 MB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-06/0.00401, allocations: 0 / 378.4 MB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/0.004044, allocations: 63.09 kB / 378.4 MB, free: 2.312 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.004045, allocations: 0 / 378.4 MB, free: 2.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001367/0.004181, allocations: 122.7 kB / 378.6 MB, free: 2.168 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.004214, allocations: 77.11 kB / 378.6 MB, free: 2.074 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.858e-05/0.004263, allocations: 146.2 kB / 378.8 MB, free: 1.918 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.628e-06/0.004272, allocations: 25.7 kB / 378.8 MB, free: 1.887 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.631e-05/0.004299, allocations: 126.9 kB / 378.9 MB, free: 1.758 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.351e-05/0.004312, allocations: 4.469 kB / 378.9 MB, free: 1.754 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.409e-05/0.004336, allocations: 19.38 kB / 378.9 MB, free: 1.727 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.004445, allocations: 496.1 kB / 379.4 MB, free: 1.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.984e-05/0.004465, allocations: 33.69 kB / 379.5 MB, free: 1.191 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.319e-05/0.004478, allocations: 25.7 kB / 379.5 MB, free: 1.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.311e-05/0.004521, allocations: 67.09 kB / 379.6 MB, free: 1.078 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.004523, allocations: 0 / 379.6 MB, free: 1.078 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.416e-05/0.004587, allocations: 93 kB / 379.6 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.004615, allocations: 33.69 kB / 379.7 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.00462, allocations: 96 / 379.7 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.797e-06/0.004629, allocations: 7.938 kB / 379.7 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.00463, allocations: 0 / 379.7 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.864e-06/0.004632, allocations: 0 / 379.7 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.051e-05/0.004642, allocations: 4 kB / 379.7 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.004648, allocations: 0 / 379.7 MB, free: 0.918 MB / 346.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.264e-05/0.004721, allocations: 182.2 kB / 379.9 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.219e-06/0.004726, allocations: 4 kB / 379.9 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.244e-05/0.004738, allocations: 7 kB / 379.9 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.00474, allocations: 0 / 379.9 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.004743, allocations: 3.984 kB / 379.9 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.004745, allocations: 4 kB / 379.9 MB, free: 0.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.062e-05/0.004806, allocations: 101.2 kB / 380 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.004807, allocations: 0 / 380 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.004808, allocations: 0 / 380 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.32e-07/0.004809, allocations: 0 / 380 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.537e-06/0.004812, allocations: 0 / 380 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.004814, allocations: 3.938 kB / 380 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.004815, allocations: 4 kB / 380 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.296e-05/0.004908, allocations: 131.8 kB / 380.1 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.978e-06/0.004912, allocations: 0 / 380.1 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.957e-06/0.004921, allocations: 4.031 kB / 380.1 MB, free: 416 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.232e-06/0.004927, allocations: 4 kB / 380.1 MB, free: 412 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.985e-06/0.004935, allocations: 0 / 380.1 MB, free: 412 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-06/0.004937, allocations: 0 / 380.1 MB, free: 412 kB / 346.7 MB Notification: Performance of sorting global known variables: time 2.719e-05/0.004964, allocations: 119.2 kB / 380.2 MB, free: 292 kB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.004964, allocations: 0 / 380.2 MB, free: 292 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001731/0.005137, allocations: 35.92 kB / 380.3 MB, free: 256 kB / 346.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.0005013/0.005638, allocations: 296.6 kB / 380.6 MB, free: 16 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001235/0.005762, allocations: 118.4 kB / 380.7 MB, free: 15.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.005764, allocations: 0 / 380.7 MB, free: 15.87 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.356e-05/0.005797, allocations: 92.78 kB / 380.8 MB, free: 15.76 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.592e-05/0.005893, allocations: 7.938 kB / 380.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001583/0.006052, allocations: 109.8 kB / 380.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.934e-05/0.006081, allocations: 55.36 kB / 380.9 MB, free: 15.53 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.614e-06/0.006088, allocations: 3.984 kB / 380.9 MB, free: 15.53 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.46e-05/0.006133, allocations: 70.2 kB / 381 MB, free: 15.46 MB / 362.7 MB Notification: Performance of SimCode: time 8.52e-07/0.006134, allocations: 0 / 381 MB, free: 15.46 MB / 362.7 MB Notification: Performance of Templates: time 0.002725/0.008858, allocations: 1.171 MB / 382.2 MB, free: 14.29 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.181159438099712]