Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.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.001171/0.001171, 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.00104/0.00104, allocations: 163.6 kB / 24.99 MB, free: 8.746 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.047/1.047, allocations: 177.1 MB / 205.3 MB, free: 5.629 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.2608/0.2608, 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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 376 MB, free: 4.996 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.378e-05/2.545e-05, allocations: 6.25 kB / 376 MB, free: 4.988 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001096/0.001121, allocations: 0.5241 MB / 376.5 MB, free: 4.461 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002618/0.003739, allocations: 2.296 MB / 378.8 MB, free: 2.141 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.142e-05/0.00376, allocations: 4 kB / 378.8 MB, free: 2.137 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.615e-05/0.003776, allocations: 3.938 kB / 378.8 MB, free: 2.133 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.041e-06/0.003782, allocations: 0 / 378.8 MB, free: 2.133 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.004919, allocations: 0.5878 MB / 379.4 MB, free: 1.543 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.78e-05/0.004987, allocations: 3.984 kB / 379.4 MB, free: 1.539 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.835e-05/0.005035, allocations: 0 / 379.4 MB, free: 1.539 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.339e-05/0.005069, allocations: 4 kB / 379.4 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.451e-05/0.005093, allocations: 0 / 379.4 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.506e-06/0.005102, allocations: 0 / 379.4 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009173/0.006019, allocations: 0.6821 MB / 380.1 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.905e-06/0.006027, allocations: 0 / 380.1 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.922e-05/0.006046, allocations: 0 / 380.1 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004952/0.006541, allocations: 0.5298 MB / 380.6 MB, free: 328 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.006545, allocations: 0 / 380.6 MB, free: 328 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.006546, allocations: 0 / 380.6 MB, free: 328 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.006551, allocations: 0 / 380.6 MB, free: 328 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.0003831/0.006934, allocations: 481 kB / 381.1 MB, free: 15.81 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.006974, allocations: 8.031 kB / 381.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.261e-05/0.007016, allocations: 0.9375 kB / 381.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.448e-05/0.007081, allocations: 108.6 kB / 381.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.007092, allocations: 384 / 381.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.796e-06/0.007101, allocations: 384 / 381.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.505e-05/0.007196, allocations: 59.91 kB / 381.3 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.007206, allocations: 192 / 381.3 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.759e-06/0.007215, allocations: 384 / 381.3 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.007225, allocations: 3.938 kB / 381.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.048e-05/0.007246, allocations: 37.69 kB / 381.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.66e-05/0.007332, allocations: 108.6 kB / 381.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.812e-05/0.00738, allocations: 52.8 kB / 381.5 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.002e-05/0.007401, allocations: 33.39 kB / 381.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.26e-06/0.007406, allocations: 3.984 kB / 381.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.491e-05/0.007451, allocations: 67.09 kB / 381.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.007452, allocations: 0 / 381.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.000192/0.007644, allocations: 118.8 kB / 381.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.007682, allocations: 81.05 kB / 381.8 MB, free: 14.97 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.441e-05/0.007726, allocations: 142.4 kB / 381.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.887e-06/0.007735, allocations: 29.7 kB / 381.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.359e-05/0.007769, allocations: 130.9 kB / 382.1 MB, free: 14.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.007785, allocations: 352 / 382.1 MB, free: 14.65 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.456e-05/0.007809, allocations: 19.36 kB / 382.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.007926, allocations: 0.4884 MB / 382.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.244e-05/0.007949, allocations: 25.7 kB / 382.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.443e-05/0.007963, allocations: 25.7 kB / 382.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.806e-05/0.008011, allocations: 67.03 kB / 382.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.008013, allocations: 0 / 382.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.245e-05/0.008085, allocations: 97.11 kB / 382.8 MB, free: 13.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.95e-05/0.008125, allocations: 37.7 kB / 382.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.008134, allocations: 0 / 382.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.008149, allocations: 0 / 382.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.00815, allocations: 0 / 382.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.008157, allocations: 7.875 kB / 382.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.473e-05/0.008172, allocations: 0 / 382.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.008181, allocations: 0 / 382.8 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 8.542e-05/0.008267, allocations: 186.3 kB / 383 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.552e-06/0.008273, allocations: 4 kB / 383 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.749e-06/0.008283, allocations: 7.031 kB / 383 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.008285, allocations: 0 / 383 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.00829, allocations: 0 / 383 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.008294, allocations: 7.875 kB / 383 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.857e-05/0.008353, allocations: 104.6 kB / 383.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.008355, allocations: 4 kB / 383.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.896e-06/0.008358, allocations: 4 kB / 383.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.008359, allocations: 0 / 383.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.008367, allocations: 3.984 kB / 383.1 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.008368, allocations: 0 / 383.1 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.008369, allocations: 0 / 383.1 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.821e-05/0.008467, allocations: 131.8 kB / 383.3 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.21e-06/0.008472, allocations: 7.984 kB / 383.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.504e-05/0.008487, allocations: 0 / 383.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.35e-06/0.008493, allocations: 0 / 383.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.335e-05/0.008506, allocations: 0 / 383.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.008509, allocations: 4 kB / 383.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.509e-05/0.008544, allocations: 123.1 kB / 383.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008544, allocations: 0 / 383.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003212/0.008865, allocations: 167.3 kB / 383.6 MB, free: 12.99 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.0006285/0.009494, allocations: 380.1 kB / 383.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001093/0.009603, allocations: 114.5 kB / 384 MB, free: 12.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.009605, allocations: 0 / 384 MB, free: 12.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.062e-05/0.009636, allocations: 92.78 kB / 384.1 MB, free: 12.37 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.843e-05/0.009734, allocations: 6.75 kB / 384.1 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001984/0.009932, allocations: 118.6 kB / 384.3 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.43e-05/0.009967, allocations: 55.34 kB / 384.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.943e-06/0.009974, allocations: 0 / 384.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.268e-05/0.009986, allocations: 8.5 kB / 384.3 MB, free: 12.13 MB / 362.7 MB Notification: Performance of SimCode: time 1.133e-06/0.009988, allocations: 0 / 384.3 MB, free: 12.13 MB / 362.7 MB Notification: Performance of Templates: time 0.005418/0.01541, allocations: 3.641 MB / 388 MB, free: 8.492 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.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.3466509820427746]