Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001382/0.001382, allocations: 183 kB / 16.63 MB, free: 5.137 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.294/1.294, allocations: 205.1 MB / 222.5 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001124, allocations: 103.8 kB / 269.9 MB, free: 8.422 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3225/0.3225, allocations: 43.49 MB / 360.7 MB, free: 51.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 55.92 kB / 429.2 MB, free: 6.379 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09891/0.1, allocations: 57.76 MB / 487 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001684/0.1017, allocations: 0.5813 MB / 487.6 MB, free: 11.96 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003149/0.1049, allocations: 2.409 MB / 490 MB, free: 9.527 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.099e-05/0.105, allocations: 3.938 kB / 490 MB, free: 9.523 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.652e-05/0.105, allocations: 0 / 490 MB, free: 9.523 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.568e-06/0.105, allocations: 4 kB / 490 MB, free: 9.52 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.1063, allocations: 462.9 kB / 490.5 MB, free: 9.066 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.001e-05/0.1064, allocations: 0 / 490.5 MB, free: 9.066 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.531e-05/0.1064, allocations: 3.938 kB / 490.5 MB, free: 9.062 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.508e-05/0.1064, allocations: 7.984 kB / 490.5 MB, free: 9.055 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.362e-05/0.1065, allocations: 0 / 490.5 MB, free: 9.055 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.239e-06/0.1065, allocations: 0 / 490.5 MB, free: 9.055 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.1076, allocations: 0.7291 MB / 491.2 MB, free: 8.324 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.683e-06/0.1076, allocations: 0 / 491.2 MB, free: 8.324 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.661e-05/0.1076, allocations: 0 / 491.2 MB, free: 8.324 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007149/0.1083, allocations: 463.3 kB / 491.6 MB, free: 7.871 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1084, allocations: 0 / 491.6 MB, free: 7.871 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1084, allocations: 0 / 491.6 MB, free: 7.871 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.955e-06/0.1084, allocations: 0 / 491.6 MB, free: 7.871 MB / 378.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.000443/0.1088, allocations: 425.3 kB / 492.1 MB, free: 7.402 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.1089, allocations: 15.97 kB / 492.1 MB, free: 7.387 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.658e-05/0.1089, allocations: 4.922 kB / 492.1 MB, free: 7.383 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.49e-05/0.109, allocations: 164.4 kB / 492.2 MB, free: 7.184 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.109, allocations: 4.375 kB / 492.2 MB, free: 7.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.109, allocations: 4.312 kB / 492.2 MB, free: 7.176 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.918e-05/0.1091, allocations: 38.02 kB / 492.3 MB, free: 7.133 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.1091, allocations: 0 / 492.3 MB, free: 7.133 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-06/0.1091, allocations: 0 / 492.3 MB, free: 7.133 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1091, allocations: 0 / 492.3 MB, free: 7.133 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.927e-05/0.1092, allocations: 7.938 kB / 492.3 MB, free: 7.125 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001171/0.1093, allocations: 149.6 kB / 492.4 MB, free: 6.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.598e-05/0.1093, allocations: 18.58 kB / 492.5 MB, free: 6.902 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.372e-05/0.1093, allocations: 8.953 kB / 492.5 MB, free: 6.891 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.272e-06/0.1094, allocations: 0 / 492.5 MB, free: 6.891 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.82e-05/0.1094, allocations: 64.2 kB / 492.5 MB, free: 6.812 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.1094, allocations: 0 / 492.5 MB, free: 6.812 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001433/0.1096, allocations: 67.33 kB / 492.6 MB, free: 6.734 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.1096, allocations: 77.11 kB / 492.7 MB, free: 6.641 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.399e-05/0.1097, allocations: 93.98 kB / 492.8 MB, free: 6.539 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.1097, allocations: 29.7 kB / 492.8 MB, free: 6.504 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.1e-05/0.1097, allocations: 80.14 kB / 492.9 MB, free: 6.422 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.484e-05/0.1097, allocations: 0 / 492.9 MB, free: 6.422 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.676e-05/0.1098, allocations: 13.72 kB / 492.9 MB, free: 6.402 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1099, allocations: 314.8 kB / 493.2 MB, free: 6.086 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.376e-06/0.1099, allocations: 0 / 493.2 MB, free: 6.086 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.552e-06/0.1099, allocations: 3.984 kB / 493.2 MB, free: 6.082 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.166e-05/0.1099, allocations: 64.33 kB / 493.3 MB, free: 6.004 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1099, allocations: 0 / 493.3 MB, free: 6.004 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.562e-05/0.11, allocations: 67.34 kB / 493.3 MB, free: 5.926 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.511e-05/0.1101, allocations: 33.64 kB / 493.4 MB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1101, allocations: 3.984 kB / 493.4 MB, free: 5.883 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.1101, allocations: 3.984 kB / 493.4 MB, free: 5.879 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-07/0.1101, allocations: 0 / 493.4 MB, free: 5.879 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.1101, allocations: 4 kB / 493.4 MB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.444e-05/0.1101, allocations: 0 / 493.4 MB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-06/0.1101, allocations: 4.031 kB / 493.4 MB, free: 5.871 MB / 378.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.174e-05/0.1102, allocations: 143.5 kB / 493.5 MB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.937e-06/0.1102, allocations: 3.938 kB / 493.5 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.078e-05/0.1102, allocations: 3.125 kB / 493.5 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.1102, allocations: 0 / 493.5 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1103, allocations: 0 / 493.5 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.1103, allocations: 0 / 493.5 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.709e-05/0.1104, allocations: 153.6 kB / 493.7 MB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1104, allocations: 4 kB / 493.7 MB, free: 5.504 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1104, allocations: 4 kB / 493.7 MB, free: 5.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.1104, allocations: 3.938 kB / 493.7 MB, free: 5.496 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.1104, allocations: 3.938 kB / 493.7 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1104, allocations: 0 / 493.7 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1104, allocations: 0 / 493.7 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003186/0.1107, allocations: 0.6413 MB / 494.3 MB, free: 4.785 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.755e-05/0.1108, allocations: 81.14 kB / 494.4 MB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.1108, allocations: 4 kB / 494.4 MB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.468e-06/0.1108, allocations: 0 / 494.4 MB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.218e-05/0.1108, allocations: 0 / 494.4 MB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.1108, allocations: 0 / 494.4 MB, free: 4.684 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.402e-05/0.1109, allocations: 79.22 kB / 494.5 MB, free: 4.605 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1109, allocations: 0 / 494.5 MB, free: 4.605 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000556/0.1114, allocations: 160 kB / 494.6 MB, free: 4.449 MB / 378.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.0007868/0.1122, allocations: 350.4 kB / 495 MB, free: 4.102 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.158e-05/0.1123, allocations: 63.33 kB / 495 MB, free: 4.027 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1123, allocations: 0 / 495 MB, free: 4.027 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.914e-05/0.1124, allocations: 55.41 kB / 495.1 MB, free: 3.961 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001213/0.1125, allocations: 4 kB / 495.1 MB, free: 3.957 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002134/0.1127, allocations: 177.6 kB / 495.3 MB, free: 3.746 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.113, allocations: 0.677 MB / 496 MB, free: 3.043 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.142e-06/0.113, allocations: 0 / 496 MB, free: 3.043 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.466e-06/0.113, allocations: 7.438 kB / 496 MB, free: 3.035 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.113, allocations: 0 / 496 MB, free: 3.035 MB / 378.7 MB Notification: Performance of Templates: time 0.006459/0.1195, allocations: 3.515 MB / 499.5 MB, free: 15.51 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches