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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008356/0.0008356, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001328/0.002164, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007374/0.0007374, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001129/0.001866, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9031/0.9031, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1759/1.079, allocations: 52.49 MB / 238.5 MB, free: 7.633 MB / 234.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.1393/0.1393, allocations: 32.8 MB / 272 MB, free: 6.309 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.04666/0.186, allocations: 12.53 MB / 284.5 MB, free: 9.73 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.182e-06/1.182e-06, allocations: 0 / 285.8 MB, free: 8.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.368e-05/2.487e-05, allocations: 2.312 kB / 285.8 MB, free: 8.434 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001603/0.001628, allocations: 0.5731 MB / 286.4 MB, free: 7.867 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002292/0.003919, allocations: 2.26 MB / 288.7 MB, free: 5.582 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.547e-05/0.003935, allocations: 0 / 288.7 MB, free: 5.582 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.29e-06/0.00394, allocations: 3.938 kB / 288.7 MB, free: 5.578 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.22e-07/0.003941, allocations: 0 / 288.7 MB, free: 5.578 MB / 282.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.001175/0.005116, allocations: 0.5137 MB / 289.2 MB, free: 5.062 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.313e-05/0.005169, allocations: 3.984 kB / 289.2 MB, free: 5.059 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.702e-05/0.005206, allocations: 8 kB / 289.2 MB, free: 5.051 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.398e-05/0.00524, allocations: 0 / 289.2 MB, free: 5.051 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.199e-05/0.005262, allocations: 0 / 289.2 MB, free: 5.051 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.155e-06/0.00527, allocations: 0 / 289.2 MB, free: 5.051 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009727/0.006243, allocations: 0.7133 MB / 289.9 MB, free: 4.336 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.228e-05/0.006255, allocations: 4 kB / 289.9 MB, free: 4.332 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.411e-05/0.006269, allocations: 0 / 289.9 MB, free: 4.332 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005377/0.006807, allocations: 430.9 kB / 290.3 MB, free: 3.91 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.032e-05/0.006817, allocations: 4 kB / 290.3 MB, free: 3.906 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.006819, allocations: 0 / 290.3 MB, free: 3.906 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.238e-06/0.006828, allocations: 0 / 290.3 MB, free: 3.906 MB / 282.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.0003986/0.007226, allocations: 393.3 kB / 290.7 MB, free: 3.492 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.007258, allocations: 12.03 kB / 290.7 MB, free: 3.48 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.4e-05/0.007292, allocations: 8.875 kB / 290.7 MB, free: 3.473 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.483e-05/0.007347, allocations: 105.8 kB / 290.9 MB, free: 3.344 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.956e-06/0.007356, allocations: 384 / 290.9 MB, free: 3.344 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.105e-06/0.007364, allocations: 384 / 290.9 MB, free: 3.344 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.572e-05/0.007429, allocations: 55.97 kB / 290.9 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.062e-06/0.007435, allocations: 192 / 290.9 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.021e-06/0.007441, allocations: 384 / 290.9 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.007447, allocations: 3.938 kB / 290.9 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.299e-05/0.00746, allocations: 29.7 kB / 290.9 MB, free: 3.238 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.008e-05/0.00752, allocations: 57.05 kB / 291 MB, free: 3.168 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.245e-05/0.007563, allocations: 52.23 kB / 291 MB, free: 3.102 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.541e-05/0.007578, allocations: 38.62 kB / 291.1 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.667e-06/0.007582, allocations: 0 / 291.1 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.007614, allocations: 56.27 kB / 291.1 MB, free: 2.984 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 4.71e-07/0.007615, allocations: 0 / 291.1 MB, free: 2.984 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001071/0.007722, allocations: 114.8 kB / 291.3 MB, free: 2.848 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.941e-05/0.007791, allocations: 158.2 kB / 291.4 MB, free: 2.656 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.961e-05/0.007821, allocations: 89.86 kB / 291.5 MB, free: 2.559 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.708e-06/0.00783, allocations: 29.7 kB / 291.5 MB, free: 2.523 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.849e-05/0.007849, allocations: 84.27 kB / 291.6 MB, free: 2.438 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.007868, allocations: 0 / 291.6 MB, free: 2.438 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.472e-05/0.007893, allocations: 17.7 kB / 291.6 MB, free: 2.414 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.417e-05/0.007967, allocations: 318.8 kB / 291.9 MB, free: 2.094 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.715e-05/0.007984, allocations: 29.7 kB / 292 MB, free: 2.059 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.293e-05/0.007997, allocations: 29.7 kB / 292 MB, free: 2.023 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.061e-05/0.008038, allocations: 60.27 kB / 292 MB, free: 1.949 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.008041, allocations: 4 kB / 292.1 MB, free: 1.945 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.17e-05/0.008092, allocations: 85.09 kB / 292.1 MB, free: 1.844 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.672e-05/0.008129, allocations: 41.73 kB / 292.2 MB, free: 1.797 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.008135, allocations: 0 / 292.2 MB, free: 1.797 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.008145, allocations: 0 / 292.2 MB, free: 1.797 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.793e-06/0.008147, allocations: 0 / 292.2 MB, free: 1.797 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.915e-06/0.00815, allocations: 0 / 292.2 MB, free: 1.797 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.506e-05/0.008165, allocations: 3.938 kB / 292.2 MB, free: 1.793 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.008172, allocations: 3.938 kB / 292.2 MB, free: 1.789 MB / 282.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 6.049e-05/0.008232, allocations: 139.5 kB / 292.3 MB, free: 1.637 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.25e-06/0.008238, allocations: 4 kB / 292.3 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.191e-05/0.008249, allocations: 6.953 kB / 292.3 MB, free: 1.621 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.008251, allocations: 0 / 292.3 MB, free: 1.621 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.008252, allocations: 4 kB / 292.3 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.008255, allocations: 3.984 kB / 292.3 MB, free: 1.613 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.58e-05/0.008301, allocations: 65.84 kB / 292.4 MB, free: 1.531 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.01e-07/0.008301, allocations: 4 kB / 292.4 MB, free: 1.527 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.008302, allocations: 0 / 292.4 MB, free: 1.527 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.227e-06/0.008306, allocations: 0 / 292.4 MB, free: 1.527 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.42e-07/0.008307, allocations: 0 / 292.4 MB, free: 1.527 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.008312, allocations: 3.984 kB / 292.4 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.91e-07/0.008313, allocations: 0 / 292.4 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.008314, allocations: 0 / 292.4 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.956e-05/0.008383, allocations: 128.4 kB / 292.5 MB, free: 1.367 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.008397, allocations: 0 / 292.5 MB, free: 1.367 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.729e-06/0.008401, allocations: 0 / 292.5 MB, free: 1.367 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.016e-05/0.008412, allocations: 4 kB / 292.5 MB, free: 1.363 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.008414, allocations: 0 / 292.5 MB, free: 1.363 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.094e-06/0.008421, allocations: 4.859 kB / 292.5 MB, free: 1.355 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008421, allocations: 0 / 292.5 MB, free: 1.355 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003495/0.008771, allocations: 155.4 kB / 292.7 MB, free: 1.203 MB / 282.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.0006174/0.009388, allocations: 389.1 kB / 293.1 MB, free: 0.832 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.679e-05/0.009475, allocations: 111.7 kB / 293.2 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.009479, allocations: 0 / 293.2 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.727e-05/0.009506, allocations: 89.95 kB / 293.3 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.781e-05/0.009554, allocations: 11.92 kB / 293.3 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001558/0.00971, allocations: 113 kB / 293.4 MB, free: 440 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.207e-05/0.009742, allocations: 63.28 kB / 293.5 MB, free: 356 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.263e-06/0.009749, allocations: 0 / 293.5 MB, free: 356 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.193e-05/0.009781, allocations: 51.38 kB / 293.5 MB, free: 304 kB / 282.7 MB Notification: Performance of SimCode: time 8.22e-07/0.009782, allocations: 0 / 293.5 MB, free: 304 kB / 282.7 MB Notification: Performance of Templates: time 0.005438/0.01522, allocations: 4.145 MB / 297.7 MB, free: 12.16 MB / 298.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.84386910777539]