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.0009879/0.0009879, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.001122/0.001122, allocations: 161 kB / 24.56 MB, free: 12 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.012/1.012, allocations: 177.1 MB / 205 MB, free: 5.602 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.2844/0.2844, allocations: 32.8 MB / 294.3 MB, free: 1.289 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.573e-06/1.573e-06, allocations: 0 / 376 MB, free: 4.695 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.338e-05/2.496e-05, allocations: 2.312 kB / 376 MB, free: 4.691 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00108/0.001105, allocations: 0.5202 MB / 376.5 MB, free: 4.168 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002634/0.003739, allocations: 2.308 MB / 378.8 MB, free: 1.836 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.676e-05/0.003756, allocations: 0 / 378.8 MB, free: 1.836 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.049e-05/0.003776, allocations: 4 kB / 378.8 MB, free: 1.832 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.054e-06/0.003783, allocations: 0 / 378.8 MB, free: 1.832 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.001293/0.005077, allocations: 0.5877 MB / 379.4 MB, free: 1.242 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.929e-05/0.005126, allocations: 4 kB / 379.4 MB, free: 1.238 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.463e-05/0.005161, allocations: 0 / 379.4 MB, free: 1.238 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.757e-05/0.005188, allocations: 0 / 379.4 MB, free: 1.238 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.024e-05/0.005208, allocations: 3.984 kB / 379.4 MB, free: 1.234 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.875e-06/0.005216, allocations: 0 / 379.4 MB, free: 1.234 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009443/0.006161, allocations: 0.6821 MB / 380.1 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.867e-06/0.006169, allocations: 0 / 380.1 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.139e-05/0.006191, allocations: 4 kB / 380.1 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00063/0.006821, allocations: 0.5259 MB / 380.6 MB, free: 20 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.006823, allocations: 4 kB / 380.6 MB, free: 16 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.006824, allocations: 0 / 380.6 MB, free: 16 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.006829, allocations: 0 / 380.6 MB, free: 16 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.0004331/0.007263, allocations: 473 kB / 381.1 MB, free: 15.51 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.007303, allocations: 8.031 kB / 381.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.931e-05/0.007342, allocations: 4.938 kB / 381.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.957e-05/0.007402, allocations: 108.6 kB / 381.2 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.007414, allocations: 8.312 kB / 381.2 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.007425, allocations: 384 / 381.2 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.343e-05/0.007518, allocations: 55.97 kB / 381.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.007528, allocations: 4.188 kB / 381.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.007537, allocations: 384 / 381.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.007547, allocations: 3.938 kB / 381.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.228e-05/0.007569, allocations: 29.69 kB / 381.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001003/0.007669, allocations: 116.6 kB / 381.4 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.711e-05/0.007716, allocations: 52.7 kB / 381.5 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.265e-05/0.007739, allocations: 37.48 kB / 381.5 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.659e-06/0.007744, allocations: 0 / 381.5 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.007782, allocations: 59.09 kB / 381.6 MB, free: 14.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.01e-07/0.007783, allocations: 0 / 381.6 MB, free: 14.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002126/0.007996, allocations: 126.8 kB / 381.7 MB, free: 14.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.008035, allocations: 81.05 kB / 381.8 MB, free: 14.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.622e-05/0.008081, allocations: 142.2 kB / 381.9 MB, free: 14.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.317e-06/0.00809, allocations: 25.7 kB / 382 MB, free: 14.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.129e-05/0.008121, allocations: 126.9 kB / 382.1 MB, free: 14.35 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.008144, allocations: 4.344 kB / 382.1 MB, free: 14.35 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.904e-05/0.008173, allocations: 19.36 kB / 382.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.008294, allocations: 0.4883 MB / 382.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.024e-05/0.008314, allocations: 29.7 kB / 382.6 MB, free: 13.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.3e-05/0.008327, allocations: 25.7 kB / 382.6 MB, free: 13.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.676e-05/0.008374, allocations: 67.28 kB / 382.7 MB, free: 13.67 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.008376, allocations: 0 / 382.7 MB, free: 13.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.352e-05/0.008449, allocations: 93.05 kB / 382.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.879e-05/0.008478, allocations: 35.73 kB / 382.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.008483, allocations: 0 / 382.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.008499, allocations: 7.984 kB / 382.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.568e-06/0.008504, allocations: 0 / 382.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.008511, allocations: 3.938 kB / 382.8 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.329e-05/0.008525, allocations: 3.938 kB / 382.9 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.008531, allocations: 0 / 382.9 MB, free: 13.51 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 7.221e-05/0.008603, allocations: 190.3 kB / 383 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.841e-06/0.008609, allocations: 0 / 383 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.216e-05/0.008621, allocations: 6.938 kB / 383 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.008624, allocations: 4 kB / 383 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.008628, allocations: 0 / 383 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.008632, allocations: 3.938 kB / 383.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.867e-05/0.00869, allocations: 104.6 kB / 383.2 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-07/0.008691, allocations: 0 / 383.2 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.008691, allocations: 0 / 383.2 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.008693, allocations: 4 kB / 383.2 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.008702, allocations: 7.984 kB / 383.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.008702, allocations: 0 / 383.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.008703, allocations: 0 / 383.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.513e-05/0.008788, allocations: 131.8 kB / 383.3 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.053e-06/0.008795, allocations: 7.984 kB / 383.3 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.00881, allocations: 3.938 kB / 383.3 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.402e-06/0.008816, allocations: 0 / 383.3 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.199e-05/0.008828, allocations: 0 / 383.3 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-06/0.00883, allocations: 0 / 383.3 MB, free: 12.97 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.96e-05/0.008929, allocations: 127.1 kB / 383.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.008929, allocations: 32 / 383.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003774/0.009307, allocations: 167.3 kB / 383.6 MB, free: 12.68 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.0006651/0.009972, allocations: 373.3 kB / 384 MB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001127/0.01008, allocations: 118.5 kB / 384.1 MB, free: 12.17 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.01009, allocations: 64 / 384.1 MB, free: 12.17 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.629e-05/0.01012, allocations: 96.78 kB / 384.2 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001215/0.01024, allocations: 0 / 384.2 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001886/0.01043, allocations: 114.5 kB / 384.3 MB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.232e-05/0.01047, allocations: 63.28 kB / 384.3 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.051e-06/0.01047, allocations: 0 / 384.3 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.193e-05/0.01048, allocations: 8.5 kB / 384.4 MB, free: 11.81 MB / 362.7 MB Notification: Performance of SimCode: time 7.92e-07/0.01048, allocations: 0 / 384.4 MB, free: 11.81 MB / 362.7 MB Notification: Performance of Templates: time 0.005896/0.01638, allocations: 3.638 MB / 388 MB, free: 8.18 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.372857823036611]