Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0008368/0.0008368, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001348/0.001348, allocations: 168 kB / 25 MB, free: 8.871 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.037/1.037, allocations: 177.1 MB / 205.3 MB, free: 5.617 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.2612/0.2612, allocations: 32.81 MB / 294.6 MB, free: 1.281 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.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 376 MB, free: 4.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.535e-05/2.704e-05, allocations: 2.312 kB / 376 MB, free: 4.988 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001077/0.001104, allocations: 0.5237 MB / 376.5 MB, free: 4.465 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002306/0.00341, allocations: 1.969 MB / 378.5 MB, free: 2.473 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.481e-05/0.003435, allocations: 0 / 378.5 MB, free: 2.473 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.769e-05/0.003452, allocations: 0 / 378.5 MB, free: 2.473 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.582e-06/0.003459, allocations: 0 / 378.5 MB, free: 2.473 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.001277/0.004736, allocations: 0.5023 MB / 379 MB, free: 1.969 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.885e-05/0.004795, allocations: 4 kB / 379 MB, free: 1.965 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.356e-05/0.004839, allocations: 7.984 kB / 379 MB, free: 1.957 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.926e-05/0.004868, allocations: 7.922 kB / 379 MB, free: 1.949 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.308e-05/0.004891, allocations: 4 kB / 379 MB, free: 1.945 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.428e-06/0.0049, allocations: 0 / 379 MB, free: 1.945 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008004/0.005701, allocations: 0.6666 MB / 379.7 MB, free: 1.277 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-06/0.005708, allocations: 0 / 379.7 MB, free: 1.277 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.465e-05/0.005733, allocations: 4 kB / 379.7 MB, free: 1.273 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004599/0.006193, allocations: 498.7 kB / 380.2 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.006195, allocations: 0 / 380.2 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.006197, allocations: 0 / 380.2 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.006202, allocations: 0 / 380.2 MB, free: 0.7852 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.0003762/0.006578, allocations: 437.3 kB / 380.6 MB, free: 324 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.006619, allocations: 12.03 kB / 380.6 MB, free: 312 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.751e-05/0.006656, allocations: 0.9375 kB / 380.6 MB, free: 312 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.729e-05/0.006724, allocations: 116.6 kB / 380.7 MB, free: 168 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.006737, allocations: 4.375 kB / 380.7 MB, free: 164 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.245e-06/0.006745, allocations: 4.375 kB / 380.7 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.405e-05/0.006839, allocations: 63.89 kB / 380.8 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.006845, allocations: 192 / 380.8 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.176e-06/0.006854, allocations: 384 / 380.8 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.006862, allocations: 3.938 kB / 380.8 MB, free: 80 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.896e-05/0.006881, allocations: 25.7 kB / 380.8 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001071/0.006988, allocations: 108.6 kB / 380.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.229e-05/0.00703, allocations: 48.77 kB / 381 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.211e-05/0.007052, allocations: 41.48 kB / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.61e-06/0.007058, allocations: 3.984 kB / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.007092, allocations: 67.03 kB / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.32e-07/0.007093, allocations: 0 / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001618/0.007255, allocations: 114.8 kB / 381.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.007294, allocations: 85.03 kB / 381.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.19e-05/0.007336, allocations: 146.2 kB / 381.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.009e-05/0.007346, allocations: 25.7 kB / 381.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.798e-05/0.007374, allocations: 126.9 kB / 381.6 MB, free: 15.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.631e-05/0.007391, allocations: 352 / 381.6 MB, free: 15.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.341e-05/0.007414, allocations: 19.38 kB / 381.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.007534, allocations: 496.1 kB / 382.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.045e-05/0.007554, allocations: 33.83 kB / 382.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.383e-05/0.007568, allocations: 25.7 kB / 382.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.356e-05/0.007632, allocations: 75.02 kB / 382.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.007634, allocations: 0 / 382.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.308e-05/0.007707, allocations: 89.06 kB / 382.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.365e-05/0.00774, allocations: 29.7 kB / 382.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.007746, allocations: 0 / 382.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.007764, allocations: 4 kB / 382.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.654e-06/0.007766, allocations: 0 / 382.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.007775, allocations: 8.016 kB / 382.3 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.054e-05/0.007786, allocations: 4 kB / 382.3 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.007792, allocations: 0 / 382.3 MB, free: 14.31 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 9.51e-05/0.007888, allocations: 186.3 kB / 382.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.06e-06/0.007893, allocations: 0 / 382.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.08e-05/0.007903, allocations: 3 kB / 382.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.007905, allocations: 0 / 382.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.00791, allocations: 4 kB / 382.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.007915, allocations: 7.875 kB / 382.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.451e-05/0.00799, allocations: 108.6 kB / 382.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.007992, allocations: 4 kB / 382.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.007993, allocations: 4 kB / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.007994, allocations: 0 / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.008004, allocations: 4 kB / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.42e-07/0.008005, allocations: 0 / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.008005, allocations: 0 / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001145/0.00812, allocations: 135.8 kB / 382.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.838e-06/0.008124, allocations: 0 / 382.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.00814, allocations: 4 kB / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.358e-06/0.008144, allocations: 0 / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.632e-05/0.008161, allocations: 0 / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-06/0.008162, allocations: 4.031 kB / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.964e-05/0.008202, allocations: 127.1 kB / 382.9 MB, free: 13.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008202, allocations: 0 / 382.9 MB, free: 13.64 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003377/0.01158, allocations: 127.6 kB / 383 MB, free: 13.52 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.001012/0.01259, allocations: 343.9 kB / 383.4 MB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001572/0.01275, allocations: 126.5 kB / 383.5 MB, free: 13.03 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.01275, allocations: 0 / 383.5 MB, free: 13.03 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.944e-05/0.01279, allocations: 88.8 kB / 383.6 MB, free: 12.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001432/0.01293, allocations: 5.969 kB / 383.6 MB, free: 12.92 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002242/0.01316, allocations: 118.5 kB / 383.7 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.439e-05/0.01319, allocations: 51.36 kB / 383.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.273e-06/0.0132, allocations: 4.125 kB / 383.8 MB, free: 12.69 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.523e-05/0.01321, allocations: 12.5 kB / 383.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of SimCode: time 1.403e-06/0.01322, allocations: 0 / 383.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of Templates: time 0.007583/0.0208, allocations: 3.525 MB / 387.3 MB, free: 9.156 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.1645894509274513]