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.001006/0.001006, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001098/0.001098, allocations: 165 kB / 24.99 MB, free: 8.328 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.017/1.017, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.2592/0.2592, allocations: 32.8 MB / 294.6 MB, free: 1.234 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 2.204e-06/2.204e-06, allocations: 0 / 376 MB, free: 5.023 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.012e-05/3.232e-05, allocations: 2.312 kB / 376 MB, free: 5.02 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001874/0.001907, allocations: 0.4951 MB / 376.5 MB, free: 4.523 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007935/0.0027, allocations: 303.2 kB / 376.8 MB, free: 4.227 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.02e-05/0.00273, allocations: 0 / 376.8 MB, free: 4.227 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.94e-05/0.00275, allocations: 0 / 376.8 MB, free: 4.227 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.093e-06/0.002757, allocations: 0 / 376.8 MB, free: 4.227 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.0009101/0.003667, allocations: 118.8 kB / 376.9 MB, free: 4.121 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.981e-05/0.003727, allocations: 0 / 376.9 MB, free: 4.121 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.804e-05/0.003765, allocations: 0 / 376.9 MB, free: 4.121 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.484e-05/0.0038, allocations: 4 kB / 376.9 MB, free: 4.117 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.434e-05/0.003824, allocations: 3.984 kB / 376.9 MB, free: 4.113 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.013e-05/0.003834, allocations: 4 kB / 376.9 MB, free: 4.109 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002245/0.004059, allocations: 107.8 kB / 377 MB, free: 4.004 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.816e-06/0.004068, allocations: 0 / 377 MB, free: 4.004 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.255e-05/0.00409, allocations: 0 / 377 MB, free: 4.004 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002531/0.004343, allocations: 107.7 kB / 377.1 MB, free: 3.898 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.004346, allocations: 0 / 377.1 MB, free: 3.898 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.004349, allocations: 7.984 kB / 377.1 MB, free: 3.891 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.004354, allocations: 0 / 377.1 MB, free: 3.891 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.0004033/0.004757, allocations: 385.9 kB / 377.5 MB, free: 3.469 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.004803, allocations: 8.031 kB / 377.5 MB, free: 3.461 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.065e-05/0.004854, allocations: 0.9375 kB / 377.5 MB, free: 3.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.22e-05/0.004946, allocations: 116.6 kB / 377.6 MB, free: 3.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.004961, allocations: 384 / 377.6 MB, free: 3.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.869e-06/0.004971, allocations: 4.312 kB / 377.6 MB, free: 3.316 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.005099, allocations: 59.97 kB / 377.7 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.005107, allocations: 192 / 377.7 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.005118, allocations: 384 / 377.7 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.005128, allocations: 4.312 kB / 377.7 MB, free: 3.242 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.865e-05/0.005167, allocations: 33.62 kB / 377.7 MB, free: 3.203 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001259/0.005293, allocations: 112.6 kB / 377.8 MB, free: 3.059 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.943e-05/0.005352, allocations: 52.8 kB / 377.9 MB, free: 2.988 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.79e-05/0.00538, allocations: 45.33 kB / 377.9 MB, free: 2.934 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.1e-06/0.005385, allocations: 0 / 377.9 MB, free: 2.934 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.254e-05/0.005428, allocations: 59.16 kB / 378 MB, free: 2.859 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.005429, allocations: 4 kB / 378 MB, free: 2.855 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002094/0.005638, allocations: 118.8 kB / 378.1 MB, free: 2.715 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.005693, allocations: 77.11 kB / 378.2 MB, free: 2.621 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.552e-05/0.005749, allocations: 146.2 kB / 378.3 MB, free: 2.465 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.108e-05/0.00576, allocations: 25.7 kB / 378.3 MB, free: 2.434 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.002e-05/0.0058, allocations: 126.9 kB / 378.5 MB, free: 2.305 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.005817, allocations: 480 / 378.5 MB, free: 2.305 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.334e-05/0.00585, allocations: 27.36 kB / 378.5 MB, free: 2.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.005992, allocations: 496.1 kB / 379 MB, free: 1.773 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.288e-05/0.006015, allocations: 33.64 kB / 379 MB, free: 1.734 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.587e-05/0.006031, allocations: 25.7 kB / 379 MB, free: 1.703 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.06e-05/0.006091, allocations: 67.09 kB / 379.1 MB, free: 1.621 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.006094, allocations: 0 / 379.1 MB, free: 1.621 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.165e-05/0.006185, allocations: 93.05 kB / 379.2 MB, free: 1.512 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.381e-05/0.006219, allocations: 29.7 kB / 379.2 MB, free: 1.477 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.006226, allocations: 0 / 379.2 MB, free: 1.477 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.006241, allocations: 4.094 kB / 379.2 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.413e-06/0.006242, allocations: 4 kB / 379.2 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.006248, allocations: 0 / 379.2 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.85e-05/0.006267, allocations: 3.938 kB / 379.2 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.006276, allocations: 7.938 kB / 379.2 MB, free: 1.457 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 9.182e-05/0.006368, allocations: 186.3 kB / 379.4 MB, free: 1.258 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.034e-05/0.006378, allocations: 4 kB / 379.4 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.898e-06/0.006388, allocations: 3 kB / 379.4 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.00639, allocations: 0 / 379.4 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.006396, allocations: 4 kB / 379.4 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.006399, allocations: 4 kB / 379.4 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.656e-05/0.006475, allocations: 108.6 kB / 379.5 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.006477, allocations: 0 / 379.5 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.042e-06/0.006478, allocations: 3.938 kB / 379.5 MB, free: 1.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.006483, allocations: 3.984 kB / 379.5 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.916e-06/0.006491, allocations: 4 kB / 379.5 MB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.006493, allocations: 0 / 379.5 MB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.006496, allocations: 3.984 kB / 379.5 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001341/0.00663, allocations: 131.8 kB / 379.7 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.241e-06/0.006636, allocations: 0 / 379.7 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.006654, allocations: 8.031 kB / 379.7 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.105e-05/0.006665, allocations: 3.938 kB / 379.7 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.282e-05/0.006678, allocations: 0 / 379.7 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/0.006682, allocations: 0 / 379.7 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.569e-05/0.006717, allocations: 119.2 kB / 379.8 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.006718, allocations: 0 / 379.8 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002755/0.006993, allocations: 35.92 kB / 379.8 MB, free: 0.7617 MB / 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.0007066/0.0077, allocations: 285.5 kB / 380.1 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001395/0.007839, allocations: 122.5 kB / 380.2 MB, free: 400 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.007843, allocations: 4 kB / 380.2 MB, free: 396 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.521e-05/0.007888, allocations: 88.8 kB / 380.3 MB, free: 284 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001421/0.00803, allocations: 0 / 380.3 MB, free: 284 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000236/0.008266, allocations: 113.8 kB / 380.4 MB, free: 132 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.871e-05/0.008305, allocations: 59.3 kB / 380.5 MB, free: 52 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.372e-06/0.008311, allocations: 0 / 380.5 MB, free: 52 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.634e-05/0.008328, allocations: 12.5 kB / 380.5 MB, free: 40 kB / 346.7 MB Notification: Performance of SimCode: time 6.92e-07/0.008328, allocations: 0 / 380.5 MB, free: 40 kB / 346.7 MB Notification: Performance of Templates: time 0.004097/0.01243, allocations: 1.033 MB / 381.5 MB, free: 15.01 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.0998450499027967]