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.00111/0.00111, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.001111/0.001111, allocations: 170.4 kB / 25.61 MB, free: 8.895 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.9677/0.9677, allocations: 177.1 MB / 206 MB, free: 4.512 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.1834/0.1834, allocations: 32.8 MB / 295.4 MB, free: 15.38 MB / 282.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.252e-06/1.252e-06, allocations: 0 / 377.3 MB, free: 25.59 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.311e-05/1.437e-05, allocations: 6.141 kB / 377.3 MB, free: 25.59 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0008875/0.0009019, allocations: 0.5048 MB / 377.8 MB, free: 25.08 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002118/0.00302, allocations: 2.28 MB / 380 MB, free: 22.78 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.211e-05/0.003042, allocations: 0 / 380 MB, free: 22.78 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.719e-05/0.003059, allocations: 0 / 380 MB, free: 22.78 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.642e-06/0.003066, allocations: 0 / 380 MB, free: 22.78 MB / 314.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.001063/0.004129, allocations: 0.5917 MB / 380.6 MB, free: 22.18 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.759e-05/0.004176, allocations: 4 kB / 380.6 MB, free: 22.18 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.499e-05/0.004211, allocations: 0 / 380.6 MB, free: 22.18 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.232e-05/0.004233, allocations: 4 kB / 380.6 MB, free: 22.18 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.713e-05/0.004251, allocations: 3.938 kB / 380.6 MB, free: 22.17 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.081e-06/0.004257, allocations: 0 / 380.6 MB, free: 22.17 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007367/0.004993, allocations: 0.6782 MB / 381.3 MB, free: 21.49 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.716e-06/0.005002, allocations: 0 / 381.3 MB, free: 21.49 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.447e-05/0.005017, allocations: 4 kB / 381.3 MB, free: 21.49 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004421/0.005459, allocations: 0.522 MB / 381.8 MB, free: 20.96 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.005461, allocations: 0 / 381.8 MB, free: 20.96 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.005462, allocations: 0 / 381.8 MB, free: 20.96 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.005467, allocations: 0 / 381.8 MB, free: 20.96 MB / 314.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.0002509/0.005718, allocations: 473 kB / 382.3 MB, free: 20.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.92e-05/0.005747, allocations: 15.98 kB / 382.3 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.591e-05/0.005773, allocations: 8.938 kB / 382.3 MB, free: 20.44 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.877e-05/0.005812, allocations: 108.6 kB / 382.4 MB, free: 20.3 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.005821, allocations: 384 / 382.4 MB, free: 20.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.869e-06/0.005826, allocations: 384 / 382.4 MB, free: 20.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.401e-05/0.00588, allocations: 55.97 kB / 382.5 MB, free: 20.24 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.005887, allocations: 192 / 382.5 MB, free: 20.24 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.699e-06/0.005892, allocations: 384 / 382.5 MB, free: 20.24 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.005897, allocations: 3.938 kB / 382.5 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.124e-05/0.005908, allocations: 37.62 kB / 382.5 MB, free: 20.19 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.206e-05/0.00596, allocations: 97.25 kB / 382.6 MB, free: 20.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.089e-05/0.005991, allocations: 52.8 kB / 382.7 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.918e-06/0.006001, allocations: 33.39 kB / 382.7 MB, free: 19.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-06/0.006004, allocations: 3.938 kB / 382.7 MB, free: 19.95 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.006025, allocations: 67.16 kB / 382.8 MB, free: 19.87 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 5.71e-07/0.006026, allocations: 0 / 382.8 MB, free: 19.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001264/0.006152, allocations: 118.7 kB / 382.9 MB, free: 19.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.278e-05/0.006175, allocations: 77.11 kB / 383 MB, free: 19.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.959e-05/0.006204, allocations: 142.2 kB / 383.1 MB, free: 19.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.13e-06/0.00621, allocations: 29.83 kB / 383.1 MB, free: 19.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.318e-05/0.006223, allocations: 130.9 kB / 383.3 MB, free: 19.32 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.006241, allocations: 0 / 383.3 MB, free: 19.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.98e-05/0.006261, allocations: 23.36 kB / 383.3 MB, free: 19.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.294e-05/0.006304, allocations: 496.1 kB / 383.8 MB, free: 18.79 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.959e-06/0.006314, allocations: 25.7 kB / 383.8 MB, free: 18.76 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.523e-06/0.006321, allocations: 25.7 kB / 383.8 MB, free: 18.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.384e-05/0.006354, allocations: 67.09 kB / 383.9 MB, free: 18.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.006356, allocations: 0 / 383.9 MB, free: 18.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.133e-05/0.006397, allocations: 93.03 kB / 384 MB, free: 18.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.006417, allocations: 37.8 kB / 384 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.006422, allocations: 0 / 384 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.338e-06/0.006431, allocations: 0 / 384 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.373e-06/0.006432, allocations: 0 / 384 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.956e-06/0.006435, allocations: 0 / 384 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.052e-05/0.006446, allocations: 3.938 kB / 384 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.006452, allocations: 4 kB / 384 MB, free: 18.48 MB / 314.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.46e-05/0.006497, allocations: 186.2 kB / 384.2 MB, free: 18.29 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.19e-06/0.006502, allocations: 4.344 kB / 384.2 MB, free: 18.28 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.063e-06/0.006509, allocations: 3 kB / 384.2 MB, free: 18.28 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.006511, allocations: 4 kB / 384.2 MB, free: 18.28 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.644e-06/0.006512, allocations: 0 / 384.2 MB, free: 18.28 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.006515, allocations: 0 / 384.2 MB, free: 18.28 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.712e-05/0.006552, allocations: 97.2 kB / 384.3 MB, free: 18.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.01e-07/0.006553, allocations: 4 kB / 384.3 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.5e-07/0.006553, allocations: 0 / 384.3 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.81e-07/0.006553, allocations: 0 / 384.3 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.396e-06/0.006557, allocations: 0 / 384.3 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.8e-07/0.006557, allocations: 0 / 384.3 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.006559, allocations: 7.984 kB / 384.3 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.252e-05/0.006612, allocations: 139.6 kB / 384.5 MB, free: 17.97 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.196e-06/0.006615, allocations: 8.031 kB / 384.5 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.157e-06/0.006624, allocations: 3.984 kB / 384.5 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.198e-06/0.006628, allocations: 0 / 384.5 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.624e-06/0.006636, allocations: 0 / 384.5 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-06/0.006638, allocations: 4 kB / 384.5 MB, free: 17.96 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.225e-05/0.00665, allocations: 119.2 kB / 384.6 MB, free: 17.84 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00665, allocations: 0 / 384.6 MB, free: 17.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002619/0.006912, allocations: 167.3 kB / 384.8 MB, free: 17.68 MB / 314.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.0004807/0.007393, allocations: 369.9 kB / 385.1 MB, free: 17.31 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.591e-05/0.007469, allocations: 126.4 kB / 385.2 MB, free: 17.16 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.72e-07/0.00747, allocations: 0 / 385.2 MB, free: 17.16 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.544e-05/0.007485, allocations: 92.78 kB / 385.3 MB, free: 17.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.624e-05/0.007572, allocations: 3.938 kB / 385.3 MB, free: 17.04 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001252/0.007697, allocations: 108.5 kB / 385.4 MB, free: 16.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.91e-05/0.007716, allocations: 63.22 kB / 385.5 MB, free: 16.82 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.809e-06/0.007721, allocations: 0 / 385.5 MB, free: 16.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.309e-05/0.007744, allocations: 74.19 kB / 385.6 MB, free: 16.75 MB / 314.7 MB Notification: Performance of SimCode: time 3.71e-07/0.007744, allocations: 0 / 385.6 MB, free: 16.75 MB / 314.7 MB Notification: Performance of Templates: time 0.005149/0.01289, allocations: 4.315 MB / 389.9 MB, free: 12.45 MB / 314.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.2435820787213743]