Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001213/0.001213, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001435/0.001435, allocations: 167.9 kB / 24.91 MB, free: 8.77 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.04/1.04, allocations: 177.1 MB / 205.3 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2424/0.2424, allocations: 34.27 MB / 296.1 MB, free: 0.7344 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.865e-06/2.865e-06, allocations: 3.984 kB / 325.2 MB, free: 7.711 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.859e-05/2.145e-05, allocations: 4.641 kB / 325.2 MB, free: 7.707 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0009193/0.0009408, allocations: 0.5127 MB / 325.8 MB, free: 7.191 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.003489, allocations: 2.312 MB / 328.1 MB, free: 4.855 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.591e-05/0.003505, allocations: 0 / 328.1 MB, free: 4.855 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.424e-05/0.003519, allocations: 0 / 328.1 MB, free: 4.855 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.973e-06/0.003526, allocations: 0 / 328.1 MB, free: 4.855 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001053/0.004579, allocations: 0.5955 MB / 328.7 MB, free: 4.258 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.199e-05/0.004621, allocations: 0.625 kB / 328.7 MB, free: 4.258 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.595e-05/0.004657, allocations: 7.984 kB / 328.7 MB, free: 4.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.611e-05/0.004683, allocations: 0 / 328.7 MB, free: 4.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.702e-05/0.0047, allocations: 0 / 328.7 MB, free: 4.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.212e-06/0.004706, allocations: 0 / 328.7 MB, free: 4.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007246/0.005431, allocations: 0.6782 MB / 329.3 MB, free: 3.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.596e-06/0.00544, allocations: 0 / 329.3 MB, free: 3.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.231e-05/0.005452, allocations: 0 / 329.3 MB, free: 3.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004679/0.00592, allocations: 0.522 MB / 329.9 MB, free: 3.047 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.212e-06/0.005921, allocations: 0 / 329.9 MB, free: 3.047 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.005922, allocations: 0 / 329.9 MB, free: 3.047 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.005926, allocations: 8 kB / 329.9 MB, free: 3.039 MB / 298.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.0002967/0.006223, allocations: 341.4 kB / 330.2 MB, free: 2.676 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.9e-05/0.006252, allocations: 12.03 kB / 330.2 MB, free: 2.664 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.081e-05/0.006272, allocations: 0.9375 kB / 330.2 MB, free: 2.664 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.815e-05/0.006321, allocations: 105.7 kB / 330.3 MB, free: 2.535 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.368e-06/0.00633, allocations: 4.375 kB / 330.3 MB, free: 2.531 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.585e-06/0.006338, allocations: 384 / 330.3 MB, free: 2.531 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.991e-05/0.006398, allocations: 55.95 kB / 330.4 MB, free: 2.465 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.039e-06/0.006403, allocations: 192 / 330.4 MB, free: 2.465 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.029e-06/0.006408, allocations: 4.375 kB / 330.4 MB, free: 2.461 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.006412, allocations: 3.938 kB / 330.4 MB, free: 2.457 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.437e-05/0.006426, allocations: 33.64 kB / 330.4 MB, free: 2.418 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.827e-05/0.006485, allocations: 57.55 kB / 330.5 MB, free: 2.348 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.92e-05/0.006524, allocations: 44.22 kB / 330.5 MB, free: 2.289 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.824e-05/0.006542, allocations: 42.64 kB / 330.6 MB, free: 2.238 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.968e-06/0.006546, allocations: 3.984 kB / 330.6 MB, free: 2.234 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.006577, allocations: 56.27 kB / 330.6 MB, free: 2.164 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.41e-07/0.006578, allocations: 0 / 330.6 MB, free: 2.164 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001032/0.006681, allocations: 110.8 kB / 330.7 MB, free: 2.031 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.006718, allocations: 85.03 kB / 330.8 MB, free: 1.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.191e-05/0.00675, allocations: 93.98 kB / 330.9 MB, free: 1.828 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.686e-06/0.006758, allocations: 25.7 kB / 330.9 MB, free: 1.797 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.938e-05/0.006778, allocations: 84.14 kB / 331 MB, free: 1.711 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.719e-05/0.006795, allocations: 5.359 kB / 331 MB, free: 1.707 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.862e-05/0.006814, allocations: 9.719 kB / 331 MB, free: 1.691 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.393e-05/0.006887, allocations: 318.8 kB / 331.3 MB, free: 1.371 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.284e-05/0.0069, allocations: 25.7 kB / 331.4 MB, free: 1.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.144e-05/0.006912, allocations: 25.7 kB / 331.4 MB, free: 1.309 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.681e-05/0.006949, allocations: 68.25 kB / 331.5 MB, free: 1.227 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.006951, allocations: 64 / 331.5 MB, free: 1.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.536e-05/0.006996, allocations: 89.11 kB / 331.5 MB, free: 1.121 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.007019, allocations: 29.7 kB / 331.6 MB, free: 1.086 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.007023, allocations: 3.938 kB / 331.6 MB, free: 1.082 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.007034, allocations: 3.984 kB / 331.6 MB, free: 1.078 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.825e-06/0.007037, allocations: 0 / 331.6 MB, free: 1.078 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.334e-06/0.007039, allocations: 0 / 331.6 MB, free: 1.078 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.298e-06/0.007049, allocations: 4 kB / 331.6 MB, free: 1.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.007054, allocations: 3.938 kB / 331.6 MB, free: 1.066 MB / 298.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 5.464e-05/0.007109, allocations: 135.5 kB / 331.7 MB, free: 0.918 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-06/0.007112, allocations: 4.031 kB / 331.7 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.484e-06/0.00712, allocations: 3 kB / 331.7 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.007121, allocations: 0 / 331.7 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.007123, allocations: 0 / 331.7 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.007126, allocations: 0 / 331.7 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.171e-05/0.007167, allocations: 69.83 kB / 331.8 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.01e-07/0.007168, allocations: 0 / 331.8 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.4e-07/0.007168, allocations: 0 / 331.8 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-07/0.007168, allocations: 3.938 kB / 331.8 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.887e-06/0.007172, allocations: 0 / 331.8 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.007174, allocations: 4 kB / 331.8 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.007174, allocations: 8 kB / 331.8 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.901e-05/0.007233, allocations: 120.4 kB / 331.9 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.156e-06/0.007236, allocations: 352 / 331.9 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.029e-05/0.007247, allocations: 4 kB / 331.9 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.877e-06/0.00725, allocations: 0 / 331.9 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.883e-06/0.007257, allocations: 0 / 331.9 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-06/0.007259, allocations: 0 / 331.9 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.851e-06/0.007264, allocations: 8.844 kB / 331.9 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007265, allocations: 0 / 331.9 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002265/0.007491, allocations: 167.3 kB / 332.1 MB, free: 496 kB / 298.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.0005071/0.007998, allocations: 363.8 kB / 332.5 MB, free: 140 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.054e-05/0.008089, allocations: 119.6 kB / 332.6 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.008091, allocations: 4 kB / 332.6 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.909e-05/0.008121, allocations: 85.97 kB / 332.7 MB, free: 15.88 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.153e-05/0.008162, allocations: 18.75 kB / 332.7 MB, free: 15.87 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001319/0.008294, allocations: 117.9 kB / 332.8 MB, free: 15.72 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.306e-05/0.008317, allocations: 51.36 kB / 332.9 MB, free: 15.65 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.779e-06/0.008322, allocations: 0 / 332.9 MB, free: 15.65 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.708e-05/0.008349, allocations: 51.38 kB / 332.9 MB, free: 15.6 MB / 314.7 MB Notification: Performance of SimCode: time 4.01e-07/0.008349, allocations: 0 / 332.9 MB, free: 15.6 MB / 314.7 MB Notification: Performance of Templates: time 0.005024/0.01337, allocations: 4.313 MB / 337.2 MB, free: 11.29 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.9818050088360906]