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.001341/0.001341, allocations: 77.88 kB / 21.42 MB, free: 3.07 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.001456/0.001456, allocations: 171.7 kB / 24.82 MB, free: 9.242 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.028/1.028, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.2646/0.2646, 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.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.342e-06/1.342e-06, allocations: 0 / 376.5 MB, free: 4.418 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.402e-05/2.536e-05, allocations: 6.25 kB / 376.5 MB, free: 4.41 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001383/0.001408, allocations: 0.52 MB / 377 MB, free: 3.891 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002939/0.004348, allocations: 1.961 MB / 379 MB, free: 1.906 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.035e-05/0.004368, allocations: 3.938 kB / 379 MB, free: 1.902 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.628e-05/0.004384, allocations: 0 / 379 MB, free: 1.902 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.992e-06/0.00439, allocations: 0 / 379 MB, free: 1.902 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.001393/0.005783, allocations: 0.5139 MB / 379.5 MB, free: 1.387 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.33e-05/0.005826, allocations: 7.984 kB / 379.5 MB, free: 1.379 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.388e-05/0.00586, allocations: 0 / 379.5 MB, free: 1.379 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.682e-05/0.005887, allocations: 0 / 379.5 MB, free: 1.379 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.886e-05/0.005906, allocations: 4 kB / 379.5 MB, free: 1.375 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.035e-06/0.005914, allocations: 4 kB / 379.5 MB, free: 1.371 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001107/0.007021, allocations: 0.6393 MB / 380.1 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.363e-05/0.007034, allocations: 0 / 380.1 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.295e-05/0.007057, allocations: 0 / 380.1 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009471/0.008004, allocations: 470.8 kB / 380.6 MB, free: 276 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.008009, allocations: 4 kB / 380.6 MB, free: 272 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.008011, allocations: 0 / 380.6 MB, free: 272 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.008015, allocations: 0 / 380.6 MB, free: 272 kB / 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.0004919/0.008507, allocations: 433.4 kB / 381 MB, free: 15.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.008555, allocations: 16.03 kB / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.545e-05/0.00859, allocations: 0.9375 kB / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.911e-05/0.008659, allocations: 112.5 kB / 381.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.00867, allocations: 384 / 381.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.622e-06/0.008677, allocations: 4.375 kB / 381.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.435e-05/0.008761, allocations: 59.95 kB / 381.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.00877, allocations: 4.188 kB / 381.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.573e-06/0.008777, allocations: 384 / 381.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.008784, allocations: 3.938 kB / 381.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.918e-05/0.008804, allocations: 25.7 kB / 381.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001028/0.008906, allocations: 97.25 kB / 381.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.225e-05/0.008959, allocations: 52.7 kB / 381.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.234e-05/0.008981, allocations: 37.48 kB / 381.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.849e-06/0.008986, allocations: 0 / 381.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.517e-05/0.009031, allocations: 67.03 kB / 381.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.009032, allocations: 4 kB / 381.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001977/0.00923, allocations: 114.8 kB / 381.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.00929, allocations: 81.11 kB / 381.7 MB, free: 14.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.165e-05/0.009352, allocations: 146.2 kB / 381.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.009363, allocations: 25.7 kB / 381.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.226e-05/0.009405, allocations: 126.9 kB / 382 MB, free: 14.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.009428, allocations: 352 / 382 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.426e-05/0.009462, allocations: 19.38 kB / 382 MB, free: 14.63 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.009607, allocations: 496.1 kB / 382.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.713e-05/0.009635, allocations: 33.69 kB / 382.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.679e-05/0.009651, allocations: 33.83 kB / 382.5 MB, free: 14.06 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.479e-05/0.009706, allocations: 63.09 kB / 382.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.009708, allocations: 0 / 382.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.784e-05/0.009796, allocations: 93.05 kB / 382.7 MB, free: 13.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.59e-05/0.009832, allocations: 29.7 kB / 382.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.009838, allocations: 0 / 382.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.009853, allocations: 3.938 kB / 382.7 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.009854, allocations: 0 / 382.7 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.009866, allocations: 4 kB / 382.7 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.233e-05/0.009889, allocations: 11.97 kB / 382.7 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.009897, allocations: 0 / 382.7 MB, free: 13.82 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 0.0001135/0.01001, allocations: 186.3 kB / 382.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.335e-05/0.01002, allocations: 0 / 382.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.388e-05/0.01005, allocations: 10.98 kB / 382.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.01005, allocations: 0 / 382.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.01005, allocations: 0 / 382.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.01006, allocations: 0 / 382.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.403e-05/0.01013, allocations: 97.2 kB / 383 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.01013, allocations: 4 kB / 383 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.011e-06/0.01013, allocations: 0 / 383 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.267e-06/0.01014, allocations: 4 kB / 383 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-06/0.01014, allocations: 0 / 383 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.01014, allocations: 4 kB / 383 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.01015, allocations: 0 / 383 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001248/0.01027, allocations: 131.7 kB / 383.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.55e-06/0.01028, allocations: 3.938 kB / 383.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.01029, allocations: 0 / 383.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.117e-05/0.0103, allocations: 4 kB / 383.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.556e-06/0.01031, allocations: 0 / 383.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.01032, allocations: 7.984 kB / 383.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.647e-05/0.01035, allocations: 123.2 kB / 383.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01035, allocations: 0 / 383.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000463/0.01082, allocations: 119.7 kB / 383.4 MB, free: 13.06 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.0007807/0.0116, allocations: 341.8 kB / 383.8 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001254/0.01172, allocations: 114.5 kB / 383.9 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.01172, allocations: 0 / 383.9 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-05/0.01177, allocations: 88.8 kB / 384 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001383/0.0119, allocations: 13.8 kB / 384 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002102/0.01211, allocations: 118.4 kB / 384.1 MB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.571e-05/0.01215, allocations: 51.36 kB / 384.1 MB, free: 12.24 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.564e-06/0.01216, allocations: 0 / 384.1 MB, free: 12.24 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.944e-05/0.01221, allocations: 74.33 kB / 384.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.01221, allocations: 0 / 384.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of Templates: time 0.008337/0.02054, allocations: 3.946 MB / 388.2 MB, free: 8.223 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.174201896879822]