Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_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.0008306/0.0008309, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.16/1.16, allocations: 205.4 MB / 222.9 MB, free: 9.043 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.0007694/0.0007694, allocations: 89.03 kB / 271.2 MB, free: 8.262 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.2762/0.2762, allocations: 43.56 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004115/0.0004115, allocations: 12 kB / 432 MB, free: 5.852 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09073/0.09115, allocations: 58.86 MB / 490.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0005186/0.09171, allocations: 244.3 kB / 491.1 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002474/0.09419, allocations: 2.211 MB / 493.3 MB, free: 8.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.345e-05/0.09422, allocations: 0 / 493.3 MB, free: 8.43 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.005e-06/0.09424, allocations: 0 / 493.3 MB, free: 8.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.44e-06/0.09425, allocations: 0 / 493.3 MB, free: 8.43 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.09534, allocations: 458.9 kB / 493.7 MB, free: 7.98 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.601e-05/0.09537, allocations: 7.938 kB / 493.7 MB, free: 7.973 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.238e-05/0.09541, allocations: 0 / 493.7 MB, free: 7.973 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.387e-05/0.09543, allocations: 3.984 kB / 493.7 MB, free: 7.969 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.567e-05/0.09545, allocations: 0 / 493.7 MB, free: 7.969 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.35e-06/0.09546, allocations: 0 / 493.7 MB, free: 7.969 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009134/0.09638, allocations: 0.7057 MB / 494.4 MB, free: 7.262 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.001e-06/0.09639, allocations: 0 / 494.4 MB, free: 7.262 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.762e-05/0.09643, allocations: 29.7 kB / 494.5 MB, free: 7.227 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000363/0.0968, allocations: 299.7 kB / 494.8 MB, free: 6.934 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.09681, allocations: 0 / 494.8 MB, free: 6.934 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.09681, allocations: 0 / 494.8 MB, free: 6.934 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.09682, allocations: 0 / 494.8 MB, free: 6.934 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.0003399/0.09717, allocations: 436.8 kB / 495.2 MB, free: 6.457 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.09721, allocations: 8.031 kB / 495.2 MB, free: 6.449 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.284e-05/0.09724, allocations: 0.9375 kB / 495.2 MB, free: 6.449 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.548e-05/0.09731, allocations: 164.4 kB / 495.4 MB, free: 6.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.624e-06/0.09732, allocations: 384 / 495.4 MB, free: 6.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.146e-06/0.09733, allocations: 8.375 kB / 495.4 MB, free: 6.242 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.097e-05/0.09741, allocations: 30.02 kB / 495.4 MB, free: 6.207 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.98e-06/0.09742, allocations: 0 / 495.4 MB, free: 6.207 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.323e-06/0.09743, allocations: 0 / 495.4 MB, free: 6.207 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.09744, allocations: 4 kB / 495.4 MB, free: 6.203 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.666e-05/0.09747, allocations: 7.922 kB / 495.4 MB, free: 6.195 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.248e-05/0.09756, allocations: 145.6 kB / 495.5 MB, free: 6.004 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.138e-05/0.0976, allocations: 26.59 kB / 495.6 MB, free: 5.969 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.178e-05/0.09762, allocations: 8.859 kB / 495.6 MB, free: 5.957 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.712e-06/0.09763, allocations: 0 / 495.6 MB, free: 5.957 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.09767, allocations: 60.2 kB / 495.6 MB, free: 5.883 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.09768, allocations: 64 / 495.6 MB, free: 5.883 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001307/0.09781, allocations: 67.33 kB / 495.7 MB, free: 5.805 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.09786, allocations: 81.11 kB / 495.8 MB, free: 5.707 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.948e-05/0.0979, allocations: 93.86 kB / 495.9 MB, free: 5.605 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.658e-06/0.09791, allocations: 25.83 kB / 495.9 MB, free: 5.574 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.048e-05/0.09794, allocations: 84.14 kB / 496 MB, free: 5.488 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.138e-05/0.09796, allocations: 0 / 496 MB, free: 5.488 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.285e-06/0.09796, allocations: 0 / 496 MB, free: 5.488 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.528e-05/0.09804, allocations: 310.8 kB / 496.3 MB, free: 5.176 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.338e-06/0.09806, allocations: 7.984 kB / 496.3 MB, free: 5.168 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.897e-06/0.09807, allocations: 0 / 496.3 MB, free: 5.168 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.018e-05/0.09811, allocations: 60.27 kB / 496.4 MB, free: 5.094 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.09812, allocations: 11.94 kB / 496.4 MB, free: 5.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.764e-05/0.09818, allocations: 63.41 kB / 496.4 MB, free: 5.008 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.09822, allocations: 37.62 kB / 496.5 MB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.09823, allocations: 0 / 496.5 MB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.406e-06/0.09824, allocations: 0 / 496.5 MB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.72e-07/0.09824, allocations: 0 / 496.5 MB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.998e-06/0.09825, allocations: 0 / 496.5 MB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.609e-05/0.09827, allocations: 11.94 kB / 496.5 MB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.042e-06/0.09828, allocations: 0 / 496.5 MB, free: 4.953 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.577e-05/0.09835, allocations: 139.6 kB / 496.6 MB, free: 4.801 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.697e-06/0.09837, allocations: 7.938 kB / 496.6 MB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.675e-06/0.09838, allocations: 3.125 kB / 496.6 MB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.09839, allocations: 0 / 496.6 MB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.09839, allocations: 0 / 496.6 MB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.0984, allocations: 0 / 496.6 MB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.055e-05/0.09847, allocations: 145.7 kB / 496.8 MB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.09848, allocations: 0 / 496.8 MB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.09849, allocations: 4 kB / 496.8 MB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.09849, allocations: 3.938 kB / 496.8 MB, free: 4.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.0985, allocations: 4 kB / 496.8 MB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.09851, allocations: 4 kB / 496.8 MB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.09852, allocations: 3.938 kB / 496.8 MB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.774e-05/0.0986, allocations: 90.83 kB / 496.9 MB, free: 4.465 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.495e-05/0.09863, allocations: 77.11 kB / 496.9 MB, free: 4.371 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.09865, allocations: 3.938 kB / 496.9 MB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.347e-06/0.09866, allocations: 4 kB / 497 MB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.393e-05/0.09868, allocations: 3.984 kB / 497 MB, free: 4.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.09869, allocations: 4.031 kB / 497 MB, free: 4.355 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.199e-05/0.09872, allocations: 75.28 kB / 497 MB, free: 4.281 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.09872, allocations: 0 / 497 MB, free: 4.281 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003828/0.09911, allocations: 155.9 kB / 497.2 MB, free: 4.129 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006868/0.0998, allocations: 338.5 kB / 497.5 MB, free: 3.793 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.812e-05/0.09989, allocations: 67.34 kB / 497.6 MB, free: 3.715 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.0999, allocations: 0 / 497.6 MB, free: 3.715 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.415e-05/0.09993, allocations: 55.41 kB / 497.6 MB, free: 3.648 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001043/0.1, allocations: 0 / 497.6 MB, free: 3.648 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000148/0.1002, allocations: 104.5 kB / 497.7 MB, free: 3.516 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001624/0.1004, allocations: 0.6731 MB / 498.4 MB, free: 2.816 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.804e-06/0.1004, allocations: 7.438 kB / 498.4 MB, free: 2.809 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1004, allocations: 4.125 kB / 498.4 MB, free: 2.805 MB / 378.7 MB Notification: Performance of Templates: time 0.147/0.2474, allocations: 3.279 MB / 0.4899 GB, free: 42.87 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches