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.0008613/0.0008613, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001091/0.001952, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0009791/0.0009791, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009145/0.001894, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.06/1.06, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1174/1.178, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.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.251/0.251, allocations: 32.79 MB / 276.8 MB, free: 15.87 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02962/0.2806, allocations: 12.53 MB / 289.3 MB, free: 8.68 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.282e-06/1.282e-06, allocations: 0 / 290.6 MB, free: 7.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.077e-05, allocations: 4.781 kB / 290.6 MB, free: 7.66 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001714/0.001735, allocations: 0.5603 MB / 291.2 MB, free: 7.227 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00745/0.009185, allocations: 2.319 MB / 293.5 MB, free: 5.422 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.701e-05/0.009202, allocations: 3.062 kB / 293.5 MB, free: 5.422 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.554e-06/0.009209, allocations: 0 / 293.5 MB, free: 5.422 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.816e-06/0.009212, allocations: 0 / 293.5 MB, free: 5.422 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.004897/0.01411, allocations: 0.5287 MB / 294 MB, free: 4.895 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.091e-05/0.01418, allocations: 4.625 kB / 294 MB, free: 4.891 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.899e-05/0.01422, allocations: 0 / 294 MB, free: 4.891 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.659e-05/0.01426, allocations: 7.938 kB / 294 MB, free: 4.883 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.215e-05/0.01428, allocations: 0 / 294 MB, free: 4.883 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.754e-06/0.01429, allocations: 0 / 294 MB, free: 4.883 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001387/0.01567, allocations: 0.7329 MB / 294.8 MB, free: 4.148 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.347e-06/0.01568, allocations: 0 / 294.8 MB, free: 4.148 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.575e-05/0.0157, allocations: 3.938 kB / 294.8 MB, free: 4.145 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003758/0.01945, allocations: 430.9 kB / 295.2 MB, free: 3.723 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.51e-05/0.01947, allocations: 4 kB / 295.2 MB, free: 3.719 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.01947, allocations: 4 kB / 295.2 MB, free: 3.715 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.01949, allocations: 0 / 295.2 MB, free: 3.715 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.0004514/0.01994, allocations: 389.3 kB / 295.6 MB, free: 3.305 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.01997, allocations: 12.03 kB / 295.6 MB, free: 3.293 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.764e-05/0.02001, allocations: 4.922 kB / 295.6 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.973e-05/0.02008, allocations: 109.7 kB / 295.7 MB, free: 3.156 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.02009, allocations: 384 / 295.7 MB, free: 3.156 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.175e-06/0.0201, allocations: 4.375 kB / 295.7 MB, free: 3.152 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.774e-05/0.02018, allocations: 51.97 kB / 295.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.02019, allocations: 192 / 295.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.533e-06/0.02019, allocations: 4.375 kB / 295.7 MB, free: 3.086 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.0202, allocations: 7.938 kB / 295.8 MB, free: 3.078 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.191e-05/0.02022, allocations: 29.69 kB / 295.8 MB, free: 3.043 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.71e-05/0.0203, allocations: 57.05 kB / 295.8 MB, free: 2.973 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.582e-05/0.02034, allocations: 44.22 kB / 295.9 MB, free: 2.914 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.905e-05/0.02036, allocations: 34.66 kB / 295.9 MB, free: 2.871 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-06/0.02037, allocations: 0 / 295.9 MB, free: 2.871 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.02041, allocations: 68.2 kB / 296 MB, free: 2.789 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.02041, allocations: 0 / 296 MB, free: 2.789 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001259/0.02053, allocations: 110.8 kB / 296.1 MB, free: 2.656 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/0.02058, allocations: 85.23 kB / 296.2 MB, free: 2.555 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.711e-05/0.02061, allocations: 89.86 kB / 296.3 MB, free: 2.457 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.02062, allocations: 25.7 kB / 296.3 MB, free: 2.426 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.125e-05/0.02065, allocations: 84.08 kB / 296.4 MB, free: 2.34 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.476e-05/0.02066, allocations: 0 / 296.4 MB, free: 2.34 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.354e-05/0.02069, allocations: 13.72 kB / 296.4 MB, free: 2.32 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.892e-05/0.02078, allocations: 318.8 kB / 296.7 MB, free: 2 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.545e-05/0.0208, allocations: 25.7 kB / 296.7 MB, free: 1.969 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.556e-05/0.02081, allocations: 29.7 kB / 296.7 MB, free: 1.934 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.159e-05/0.02087, allocations: 64.25 kB / 296.8 MB, free: 1.855 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.02087, allocations: 4.062 kB / 296.8 MB, free: 1.852 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.284e-05/0.02094, allocations: 89.09 kB / 296.9 MB, free: 1.746 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.021e-05/0.02098, allocations: 33.7 kB / 296.9 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.02099, allocations: 0 / 296.9 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.416e-06/0.02099, allocations: 0 / 296.9 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.602e-06/0.021, allocations: 3.938 kB / 296.9 MB, free: 1.703 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.926e-06/0.021, allocations: 0 / 296.9 MB, free: 1.703 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.925e-05/0.02102, allocations: 0 / 296.9 MB, free: 1.703 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.02103, allocations: 7.938 kB / 296.9 MB, free: 1.695 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 7.48e-05/0.02111, allocations: 135.5 kB / 297.1 MB, free: 1.547 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-06/0.02112, allocations: 8.031 kB / 297.1 MB, free: 1.539 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.816e-06/0.02113, allocations: 3 kB / 297.1 MB, free: 1.539 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.02113, allocations: 0 / 297.1 MB, free: 1.539 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.02113, allocations: 0 / 297.1 MB, free: 1.539 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.02113, allocations: 0 / 297.1 MB, free: 1.539 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.235e-05/0.02119, allocations: 70.47 kB / 297.2 MB, free: 1.453 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.02119, allocations: 0 / 297.2 MB, free: 1.453 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.172e-06/0.0212, allocations: 0 / 297.2 MB, free: 1.453 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.672e-06/0.0212, allocations: 7.984 kB / 297.2 MB, free: 1.445 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.0212, allocations: 0 / 297.2 MB, free: 1.445 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.86e-06/0.02121, allocations: 0 / 297.2 MB, free: 1.445 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.02121, allocations: 8 kB / 297.2 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.02121, allocations: 0 / 297.2 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.807e-05/0.0213, allocations: 120.3 kB / 297.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.209e-05/0.02131, allocations: 0 / 297.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.092e-05/0.02132, allocations: 4 kB / 297.3 MB, free: 1.285 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.899e-06/0.02133, allocations: 4 kB / 297.3 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.02134, allocations: 0 / 297.3 MB, free: 1.281 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.702e-06/0.02134, allocations: 4.859 kB / 297.3 MB, free: 1.273 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02134, allocations: 0 / 297.3 MB, free: 1.273 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002997/0.02434, allocations: 159.4 kB / 297.5 MB, free: 1.117 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.0008046/0.02515, allocations: 387 kB / 297.8 MB, free: 0.75 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000103/0.02525, allocations: 115.7 kB / 298 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.02526, allocations: 3.984 kB / 298 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.472e-05/0.02529, allocations: 86.03 kB / 298 MB, free: 0.5 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.906e-05/0.02535, allocations: 8 kB / 298 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001739/0.02552, allocations: 125.3 kB / 298.2 MB, free: 344 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.16e-05/0.02556, allocations: 55.3 kB / 298.2 MB, free: 268 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.222e-06/0.02556, allocations: 0 / 298.2 MB, free: 268 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.41e-05/0.0256, allocations: 51.38 kB / 298.3 MB, free: 216 kB / 282.7 MB Notification: Performance of SimCode: time 7.01e-07/0.0256, allocations: 0 / 298.3 MB, free: 216 kB / 282.7 MB Notification: Performance of Templates: time 0.006382/0.03198, allocations: 4.309 MB / 302.6 MB, free: 11.91 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.166218194179237]