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.001223/0.001223, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009496/0.0009496, allocations: 169.9 kB / 24.91 MB, free: 8.723 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 0.9485/0.9485, allocations: 177.1 MB / 205.3 MB, free: 5.105 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.2673/0.2673, allocations: 34.26 MB / 296.1 MB, free: 0.6797 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.333e-06/1.333e-06, allocations: 0 / 325.3 MB, free: 7.676 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.463e-05/1.596e-05, allocations: 2.969 kB / 325.3 MB, free: 7.672 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001003/0.001019, allocations: 0.5575 MB / 325.8 MB, free: 7.113 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.003113, allocations: 1.985 MB / 327.8 MB, free: 5.105 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.418e-05/0.003127, allocations: 4 kB / 327.8 MB, free: 5.102 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.249e-05/0.003139, allocations: 0 / 327.8 MB, free: 5.102 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.72e-06/0.003145, allocations: 0 / 327.8 MB, free: 5.102 MB / 298.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.0008368/0.003982, allocations: 458.4 kB / 328.3 MB, free: 4.652 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.873e-05/0.004031, allocations: 4.625 kB / 328.3 MB, free: 4.648 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.122e-05/0.004062, allocations: 0 / 328.3 MB, free: 4.648 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.743e-05/0.004089, allocations: 3.984 kB / 328.3 MB, free: 4.645 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.75e-05/0.004107, allocations: 0 / 328.3 MB, free: 4.645 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.463e-06/0.004113, allocations: 0 / 328.3 MB, free: 4.645 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007338/0.004847, allocations: 0.7095 MB / 329 MB, free: 3.934 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.903e-06/0.004854, allocations: 0 / 329 MB, free: 3.934 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.428e-05/0.004868, allocations: 4 kB / 329 MB, free: 3.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003887/0.005257, allocations: 466.7 kB / 329.5 MB, free: 3.473 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.413e-06/0.005258, allocations: 0 / 329.5 MB, free: 3.473 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.005259, allocations: 4 kB / 329.5 MB, free: 3.469 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.006e-06/0.005262, allocations: 0 / 329.5 MB, free: 3.469 MB / 298.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.0002374/0.005499, allocations: 314.2 kB / 329.8 MB, free: 3.133 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.808e-05/0.005527, allocations: 12.03 kB / 329.8 MB, free: 3.121 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.119e-05/0.005549, allocations: 4.938 kB / 329.8 MB, free: 3.117 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.969e-05/0.005598, allocations: 105.8 kB / 329.9 MB, free: 2.988 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.446e-06/0.005607, allocations: 384 / 329.9 MB, free: 2.988 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.032e-06/0.005613, allocations: 4.375 kB / 329.9 MB, free: 2.984 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.151e-05/0.005674, allocations: 51.97 kB / 329.9 MB, free: 2.922 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.52e-06/0.00568, allocations: 192 / 329.9 MB, free: 2.922 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.721e-06/0.005685, allocations: 8.312 kB / 329.9 MB, free: 2.914 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.005692, allocations: 7.938 kB / 330 MB, free: 2.906 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.526e-05/0.005708, allocations: 25.7 kB / 330 MB, free: 2.875 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.916e-05/0.005767, allocations: 61.03 kB / 330 MB, free: 2.801 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.97e-05/0.005806, allocations: 44.28 kB / 330.1 MB, free: 2.742 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.514e-05/0.005822, allocations: 38.59 kB / 330.1 MB, free: 2.695 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-06/0.005825, allocations: 0 / 330.1 MB, free: 2.695 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.005854, allocations: 56.27 kB / 330.2 MB, free: 2.625 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 4.51e-07/0.005854, allocations: 0 / 330.2 MB, free: 2.625 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.343e-05/0.005948, allocations: 118.7 kB / 330.3 MB, free: 2.484 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.005976, allocations: 81.23 kB / 330.4 MB, free: 2.387 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.054e-05/0.006007, allocations: 89.86 kB / 330.5 MB, free: 2.289 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.085e-06/0.006015, allocations: 25.7 kB / 330.5 MB, free: 2.258 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.626e-05/0.006031, allocations: 80.14 kB / 330.6 MB, free: 2.176 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.459e-05/0.006046, allocations: 5.375 kB / 330.6 MB, free: 2.172 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.916e-05/0.006065, allocations: 9.719 kB / 330.6 MB, free: 2.156 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.645e-05/0.006132, allocations: 326.8 kB / 330.9 MB, free: 1.828 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.141e-05/0.006143, allocations: 29.7 kB / 330.9 MB, free: 1.793 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.939e-06/0.006153, allocations: 25.7 kB / 331 MB, free: 1.762 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.358e-05/0.006186, allocations: 64.27 kB / 331 MB, free: 1.684 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.006188, allocations: 4 kB / 331 MB, free: 1.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.192e-05/0.00623, allocations: 89.09 kB / 331.1 MB, free: 1.574 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.00625, allocations: 29.7 kB / 331.1 MB, free: 1.539 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.006254, allocations: 0 / 331.1 MB, free: 1.539 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.266e-06/0.006262, allocations: 0 / 331.1 MB, free: 1.539 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.333e-06/0.006264, allocations: 0 / 331.1 MB, free: 1.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.464e-06/0.006266, allocations: 0 / 331.1 MB, free: 1.539 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.112e-05/0.006277, allocations: 7.938 kB / 331.1 MB, free: 1.531 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.006283, allocations: 3.938 kB / 331.1 MB, free: 1.527 MB / 298.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.62e-05/0.006329, allocations: 135.6 kB / 331.3 MB, free: 1.379 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.931e-06/0.006335, allocations: 7.984 kB / 331.3 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.384e-06/0.006343, allocations: 3 kB / 331.3 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.006344, allocations: 0 / 331.3 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.006345, allocations: 0 / 331.3 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.006347, allocations: 0 / 331.3 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.296e-05/0.00638, allocations: 65.84 kB / 331.4 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.5e-07/0.00638, allocations: 0 / 331.4 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.032e-06/0.006382, allocations: 3.938 kB / 331.4 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.61e-07/0.006382, allocations: 0 / 331.4 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.997e-06/0.006386, allocations: 0 / 331.4 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.1e-07/0.006386, allocations: 4 kB / 331.4 MB, free: 1.281 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.31e-07/0.006387, allocations: 3.938 kB / 331.4 MB, free: 1.277 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.567e-05/0.006442, allocations: 124.5 kB / 331.5 MB, free: 1.125 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.136e-06/0.006446, allocations: 352 / 331.5 MB, free: 1.125 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.237e-06/0.006455, allocations: 0 / 331.5 MB, free: 1.125 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.791e-06/0.006461, allocations: 7.984 kB / 331.5 MB, free: 1.117 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.576e-06/0.006469, allocations: 0 / 331.5 MB, free: 1.117 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-06/0.006471, allocations: 0 / 331.5 MB, free: 1.117 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.43e-06/0.006476, allocations: 4.859 kB / 331.5 MB, free: 1.109 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006476, allocations: 0 / 331.5 MB, free: 1.109 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001985/0.006675, allocations: 119.7 kB / 331.6 MB, free: 0.9922 MB / 298.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.0004954/0.00717, allocations: 338.8 kB / 331.9 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.442e-05/0.007264, allocations: 127.6 kB / 332.1 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.007268, allocations: 4 kB / 332.1 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.592e-05/0.007294, allocations: 85.97 kB / 332.2 MB, free: 412 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.322e-05/0.007347, allocations: 7.938 kB / 332.2 MB, free: 404 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001473/0.007495, allocations: 111.3 kB / 332.3 MB, free: 260 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.83e-05/0.007523, allocations: 51.36 kB / 332.3 MB, free: 188 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.458e-06/0.007527, allocations: 0 / 332.3 MB, free: 188 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.994e-05/0.007557, allocations: 59.36 kB / 332.4 MB, free: 128 kB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.007558, allocations: 0 / 332.4 MB, free: 128 kB / 298.7 MB Notification: Performance of Templates: time 0.004423/0.01198, allocations: 3.921 MB / 336.3 MB, free: 12.21 MB / 314.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 -s gbode -gbm=radauIIA3 -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.0744537352584302]