Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.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.001463/0.001463, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001426/0.001426, allocations: 165 kB / 24.56 MB, free: 16 kB / 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.034/1.034, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2706/0.2706, allocations: 34.25 MB / 295.7 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 378 MB, free: 2.652 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.389e-05/2.544e-05, allocations: 9.688 kB / 378 MB, free: 2.645 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.00113/0.001156, allocations: 0.5163 MB / 378.5 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.003242, allocations: 1.981 MB / 380.5 MB, free: 124 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.598e-05/0.003258, allocations: 3.938 kB / 380.5 MB, free: 120 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.058e-05/0.003279, allocations: 0 / 380.5 MB, free: 120 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.064e-06/0.003286, allocations: 4 kB / 380.5 MB, free: 116 kB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Math.mo:928:5-1011:16:writable] Warning: Pure function 'ModelicaTest.Math.Random.special' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.004426, allocations: 0.4984 MB / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.911e-05/0.004475, allocations: 4 kB / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.333e-05/0.004508, allocations: 0 / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.56e-05/0.004534, allocations: 3.984 kB / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.687e-05/0.004551, allocations: 0 / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.226e-06/0.004559, allocations: 4 kB / 381 MB, free: 15.6 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009756/0.005535, allocations: 0.6744 MB / 381.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.717e-06/0.005543, allocations: 0 / 381.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.348e-05/0.005567, allocations: 7.984 kB / 381.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004777/0.006045, allocations: 486.7 kB / 382.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.006048, allocations: 0 / 382.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.006049, allocations: 0 / 382.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.006054, allocations: 3.938 kB / 382.2 MB, free: 14.44 MB / 362.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.0003449/0.006399, allocations: 445.3 kB / 382.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.006437, allocations: 8.031 kB / 382.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.725e-05/0.006474, allocations: 0.9375 kB / 382.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.905e-05/0.006533, allocations: 116.6 kB / 382.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.006543, allocations: 384 / 382.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.085e-05/0.006554, allocations: 384 / 382.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.453e-05/0.006649, allocations: 63.95 kB / 382.8 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.006659, allocations: 192 / 382.8 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-06/0.006667, allocations: 384 / 382.8 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.006677, allocations: 3.938 kB / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.801e-05/0.006695, allocations: 25.7 kB / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.546e-05/0.00678, allocations: 108.6 kB / 383 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.408e-05/0.006824, allocations: 56.73 kB / 383 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.101e-05/0.006845, allocations: 41.36 kB / 383.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.781e-06/0.006851, allocations: 4 kB / 383.1 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.67e-05/0.006888, allocations: 59.16 kB / 383.1 MB, free: 13.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.006889, allocations: 4 kB / 383.1 MB, free: 13.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001708/0.00706, allocations: 122.7 kB / 383.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.566e-05/0.007095, allocations: 85.03 kB / 383.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.917e-05/0.007134, allocations: 142.2 kB / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.033e-05/0.007145, allocations: 29.7 kB / 383.5 MB, free: 12.92 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.944e-05/0.007174, allocations: 126.9 kB / 383.6 MB, free: 12.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.007192, allocations: 4.344 kB / 383.6 MB, free: 12.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.38e-05/0.007216, allocations: 15.38 kB / 383.6 MB, free: 12.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.007319, allocations: 492.1 kB / 384.1 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.12e-05/0.00734, allocations: 29.7 kB / 384.1 MB, free: 12.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.427e-05/0.007355, allocations: 29.83 kB / 384.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.269e-05/0.007397, allocations: 71.08 kB / 384.2 MB, free: 12.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.0074, allocations: 0 / 384.2 MB, free: 12.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.577e-05/0.007466, allocations: 93 kB / 384.3 MB, free: 12.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.007493, allocations: 29.7 kB / 384.4 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.007499, allocations: 4 kB / 384.4 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.007514, allocations: 3.984 kB / 384.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.839e-06/0.007519, allocations: 0 / 384.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.007528, allocations: 7.875 kB / 384.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.444e-05/0.007542, allocations: 0 / 384.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.007549, allocations: 4.094 kB / 384.4 MB, free: 11.95 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.821e-05/0.007617, allocations: 182.3 kB / 384.6 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.24e-06/0.007622, allocations: 0 / 384.6 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.298e-05/0.007635, allocations: 11 kB / 384.6 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.007636, allocations: 4 kB / 384.6 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.007641, allocations: 0 / 384.6 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.007644, allocations: 3.938 kB / 384.6 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.434e-05/0.007698, allocations: 108.6 kB / 384.7 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.007699, allocations: 0 / 384.7 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-07/0.0077, allocations: 0 / 384.7 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.007701, allocations: 8 kB / 384.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.541e-06/0.007706, allocations: 0 / 384.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.007707, allocations: 0 / 384.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.007709, allocations: 3.984 kB / 384.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.636e-05/0.007796, allocations: 135.7 kB / 384.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.601e-06/0.007801, allocations: 4 kB / 384.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.007814, allocations: 0 / 384.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.25e-06/0.007819, allocations: 0 / 384.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.076e-05/0.00783, allocations: 0 / 384.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.007833, allocations: 4 kB / 384.8 MB, free: 11.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.805e-05/0.007861, allocations: 123.1 kB / 385 MB, free: 11.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007861, allocations: 4.031 kB / 385 MB, free: 11.29 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002639/0.008125, allocations: 131.6 kB / 385.1 MB, free: 11.16 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.000631/0.008756, allocations: 344.7 kB / 385.4 MB, free: 10.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001084/0.008864, allocations: 126.5 kB / 385.6 MB, free: 10.67 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.008866, allocations: 0 / 385.6 MB, free: 10.67 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.943e-05/0.008895, allocations: 92.73 kB / 385.6 MB, free: 10.56 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.031e-05/0.008985, allocations: 0 / 385.6 MB, free: 10.56 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001853/0.009171, allocations: 114.5 kB / 385.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.822e-05/0.009199, allocations: 51.36 kB / 385.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.531e-06/0.009204, allocations: 4 kB / 385.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.369e-05/0.009218, allocations: 8.625 kB / 385.8 MB, free: 10.33 MB / 362.7 MB Notification: Performance of SimCode: time 8.42e-07/0.009219, allocations: 4 kB / 385.8 MB, free: 10.32 MB / 362.7 MB Notification: Performance of Templates: time 0.005364/0.01458, allocations: 3.535 MB / 389.4 MB, free: 6.789 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.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.3435933808796108]