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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008591/0.0008591, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001187/0.002046, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00156/0.002572, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9054/0.9054, allocations: 173.4 MB / 186 MB, free: 7.516 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1711/1.076, allocations: 52.48 MB / 238.5 MB, free: 7.605 MB / 234.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.1319/0.1319, allocations: 32.8 MB / 272 MB, free: 6.27 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02083/0.1527, allocations: 12.54 MB / 284.5 MB, free: 9.691 MB / 282.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.453e-06/1.453e-06, allocations: 0 / 285.8 MB, free: 8.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.414e-05/2.559e-05, allocations: 2.312 kB / 285.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001922/0.001947, allocations: 0.5426 MB / 286.4 MB, free: 7.879 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005662/0.002513, allocations: 317.7 kB / 286.7 MB, free: 7.57 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.404e-05/0.002528, allocations: 4 kB / 286.7 MB, free: 7.566 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.491e-06/0.002533, allocations: 0 / 286.7 MB, free: 7.566 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.084e-06/0.002535, allocations: 0 / 286.7 MB, free: 7.566 MB / 282.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.0007399/0.003275, allocations: 102.8 kB / 286.8 MB, free: 7.477 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.102e-05/0.003336, allocations: 0 / 286.8 MB, free: 7.477 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.412e-05/0.00338, allocations: 11.98 kB / 286.8 MB, free: 7.465 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.366e-05/0.003414, allocations: 0 / 286.8 MB, free: 7.465 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.376e-05/0.003438, allocations: 0 / 286.8 MB, free: 7.465 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.305e-06/0.003446, allocations: 0 / 286.8 MB, free: 7.465 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000241/0.003687, allocations: 115.8 kB / 286.9 MB, free: 7.352 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.222e-05/0.003699, allocations: 4 kB / 286.9 MB, free: 7.348 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.36e-05/0.003713, allocations: 7.938 kB / 286.9 MB, free: 7.34 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.003917, allocations: 83.78 kB / 287 MB, free: 7.258 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.319e-05/0.003931, allocations: 0 / 287 MB, free: 7.258 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.003932, allocations: 0 / 287 MB, free: 7.258 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.003942, allocations: 0 / 287 MB, free: 7.258 MB / 282.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.0002957/0.004237, allocations: 278.2 kB / 287.3 MB, free: 6.953 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.004279, allocations: 12.03 kB / 287.3 MB, free: 6.941 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.4e-05/0.004313, allocations: 0.9375 kB / 287.3 MB, free: 6.941 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.86e-05/0.004381, allocations: 105.7 kB / 287.4 MB, free: 6.812 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.004393, allocations: 4.375 kB / 287.4 MB, free: 6.809 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-06/0.004403, allocations: 384 / 287.4 MB, free: 6.809 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.186e-05/0.004485, allocations: 63.95 kB / 287.5 MB, free: 6.734 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.004494, allocations: 4.172 kB / 287.5 MB, free: 6.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.872e-06/0.0045, allocations: 384 / 287.5 MB, free: 6.73 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.78e-06/0.004506, allocations: 384 / 287.5 MB, free: 6.73 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.03e-05/0.004526, allocations: 33.58 kB / 287.5 MB, free: 6.691 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.053e-05/0.004596, allocations: 57.05 kB / 287.5 MB, free: 6.621 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.508e-05/0.004641, allocations: 44.31 kB / 287.6 MB, free: 6.562 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.063e-05/0.004662, allocations: 34.55 kB / 287.6 MB, free: 6.52 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.797e-06/0.004666, allocations: 0 / 287.6 MB, free: 6.52 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.101e-05/0.004707, allocations: 68.33 kB / 287.7 MB, free: 6.438 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.004708, allocations: 4 kB / 287.7 MB, free: 6.434 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001246/0.004833, allocations: 110.8 kB / 287.8 MB, free: 6.301 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.004896, allocations: 162.2 kB / 288 MB, free: 6.105 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.71e-05/0.004933, allocations: 89.86 kB / 288 MB, free: 6.008 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.839e-06/0.004943, allocations: 25.7 kB / 288.1 MB, free: 5.977 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.295e-05/0.004966, allocations: 80.14 kB / 288.1 MB, free: 5.895 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.908e-05/0.004985, allocations: 0 / 288.1 MB, free: 5.895 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.882e-05/0.005013, allocations: 13.72 kB / 288.2 MB, free: 5.875 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.495e-05/0.005098, allocations: 318.8 kB / 288.5 MB, free: 5.555 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.7e-05/0.005125, allocations: 29.83 kB / 288.5 MB, free: 5.52 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.871e-05/0.005144, allocations: 33.69 kB / 288.5 MB, free: 5.48 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.341e-05/0.005198, allocations: 64.27 kB / 288.6 MB, free: 5.402 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.0052, allocations: 0 / 288.6 MB, free: 5.402 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.018e-05/0.00527, allocations: 89.05 kB / 288.7 MB, free: 5.297 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/0.005307, allocations: 33.69 kB / 288.7 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.005312, allocations: 0 / 288.7 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.005324, allocations: 0 / 288.7 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.342e-06/0.005326, allocations: 0 / 288.7 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.00533, allocations: 4 kB / 288.7 MB, free: 5.254 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.718e-05/0.005347, allocations: 4.094 kB / 288.7 MB, free: 5.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.005355, allocations: 0 / 288.7 MB, free: 5.25 MB / 282.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.087e-05/0.005425, allocations: 139.5 kB / 288.9 MB, free: 5.098 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.723e-06/0.005432, allocations: 0 / 288.9 MB, free: 5.098 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.328e-05/0.005445, allocations: 14.88 kB / 288.9 MB, free: 5.078 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.005447, allocations: 0 / 288.9 MB, free: 5.078 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-06/0.005449, allocations: 0 / 288.9 MB, free: 5.078 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.005451, allocations: 0 / 288.9 MB, free: 5.078 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.679e-05/0.005508, allocations: 69.84 kB / 288.9 MB, free: 4.992 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.005509, allocations: 0 / 288.9 MB, free: 4.992 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.31e-07/0.00551, allocations: 4 kB / 288.9 MB, free: 4.988 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.957e-06/0.005514, allocations: 0 / 288.9 MB, free: 4.988 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.005516, allocations: 4 kB / 289 MB, free: 4.984 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.038e-06/0.00552, allocations: 0 / 289 MB, free: 4.984 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.005521, allocations: 0 / 289 MB, free: 4.984 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.005522, allocations: 3.938 kB / 289 MB, free: 4.98 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.61e-05/0.005609, allocations: 116.5 kB / 289.1 MB, free: 4.836 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.005623, allocations: 4 kB / 289.1 MB, free: 4.832 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.797e-06/0.005632, allocations: 0 / 289.1 MB, free: 4.832 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.277e-06/0.005641, allocations: 3.984 kB / 289.1 MB, free: 4.828 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.005644, allocations: 0 / 289.1 MB, free: 4.828 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.518e-06/0.005654, allocations: 8.891 kB / 289.1 MB, free: 4.816 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.005654, allocations: 0 / 289.1 MB, free: 4.816 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001943/0.005848, allocations: 27.94 kB / 289.1 MB, free: 4.789 MB / 282.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.0008368/0.006685, allocations: 374.8 kB / 289.5 MB, free: 4.535 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001134/0.006798, allocations: 123.5 kB / 289.6 MB, free: 4.387 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.006803, allocations: 0 / 289.6 MB, free: 4.387 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.447e-05/0.006848, allocations: 89.95 kB / 289.7 MB, free: 4.277 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.417e-05/0.006912, allocations: 15.88 kB / 289.7 MB, free: 4.262 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002003/0.007112, allocations: 108.2 kB / 289.8 MB, free: 4.121 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.621e-05/0.007148, allocations: 63.34 kB / 289.9 MB, free: 4.039 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.232e-06/0.007155, allocations: 0 / 289.9 MB, free: 4.039 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.276e-05/0.007197, allocations: 51.38 kB / 289.9 MB, free: 3.988 MB / 282.7 MB Notification: Performance of SimCode: time 6.91e-07/0.007198, allocations: 0 / 289.9 MB, free: 3.988 MB / 282.7 MB Notification: Performance of Templates: time 0.003781/0.01098, allocations: 1.192 MB / 291.1 MB, free: 2.797 MB / 282.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7153105875477195]