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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001567/0.001567, allocations: 187.3 kB / 8.523 MB, free: 1.762 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.4 MB / 230.3 MB, free: 7.625 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008997/0.0008996, allocations: 85.86 kB / 281.2 MB, free: 5.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1663/0.1663, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.143e-06/7.163e-06, allocations: 4 kB / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1159, allocations: 61.91 MB / 0.4941 GB, free: 1.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.34/0.456, allocations: 88.74 MB / 0.5807 GB, free: 8.066 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.4563, allocations: 69.16 kB / 0.5808 GB, free: 8.023 MB / 394.7 MB Notification: Performance of FrontEnd: time 6.342/6.798, allocations: 2.308 GB / 2.889 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.026e-05/6.798, allocations: 5.125 kB / 2.889 GB, free: 115.7 MB / 0.5105 GB 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.004295/6.802, allocations: 461.5 kB / 2.89 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/6.803, allocations: 15.06 kB / 2.89 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/6.803, allocations: 0 / 2.89 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.204e-05/6.803, allocations: 160.1 kB / 2.89 GB, free: 115 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/6.803, allocations: 0.6562 kB / 2.89 GB, free: 115 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.646e-06/6.803, allocations: 0.9688 kB / 2.89 GB, free: 115 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.509e-05/6.803, allocations: 0.7188 kB / 2.89 GB, free: 115 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.558e-05/6.803, allocations: 31.8 kB / 2.89 GB, free: 115 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/6.803, allocations: 0 / 2.89 GB, free: 115 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/6.803, allocations: 4.625 kB / 2.89 GB, free: 115 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/6.803, allocations: 3.984 kB / 2.89 GB, free: 115 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.792e-05/6.803, allocations: 131.4 kB / 2.89 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 3.223e-05/6.803, allocations: 20.48 kB / 2.89 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.714e-05/6.803, allocations: 5.359 kB / 2.89 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.011e-05/6.803, allocations: 8.75 kB / 2.89 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/6.803, allocations: 57.14 kB / 2.89 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1): time 2.765e-06/6.803, allocations: 0 / 2.89 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1): time 0.0001177/6.803, allocations: 33.59 kB / 2.89 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.367e-05/6.803, allocations: 81.97 kB / 2.89 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.52e-05/6.803, allocations: 85 kB / 2.89 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.326e-06/6.803, allocations: 26.64 kB / 2.89 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 1.08e-05/6.803, allocations: 84.08 kB / 2.89 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/6.803, allocations: 4.562 kB / 2.89 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-06/6.803, allocations: 0 / 2.89 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 3.894e-05/6.803, allocations: 312.2 kB / 2.891 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.121e-06/6.803, allocations: 4 kB / 2.891 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.03e-06/6.803, allocations: 1.188 kB / 2.891 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.339e-05/6.803, allocations: 5.75 kB / 2.891 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/6.803, allocations: 0 / 2.891 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.095e-05/6.803, allocations: 34.05 kB / 2.891 GB, free: 114 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/6.803, allocations: 4.625 kB / 2.891 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/6.803, allocations: 0.7812 kB / 2.891 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/6.803, allocations: 0 / 2.891 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-06/6.803, allocations: 4.547 kB / 2.891 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/6.803, allocations: 0.875 kB / 2.891 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.269e-05/6.803, allocations: 0 / 2.891 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/6.803, allocations: 5 kB / 2.891 GB, free: 114 MB / 0.5105 GB 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 () * 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 5.781e-05/6.804, allocations: 128.8 kB / 2.891 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.013e-06/6.804, allocations: 4.312 kB / 2.891 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.095e-05/6.804, allocations: 6.953 kB / 2.891 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/6.804, allocations: 1.312 kB / 2.891 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/6.804, allocations: 0 / 2.891 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/6.804, allocations: 4 kB / 2.891 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.419e-05/6.804, allocations: 131.7 kB / 2.891 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/6.804, allocations: 1.156 kB / 2.891 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/6.804, allocations: 0 / 2.891 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.51e-07/6.804, allocations: 0 / 2.891 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-06/6.804, allocations: 1.062 kB / 2.891 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/6.804, allocations: 3.906 kB / 2.891 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/6.804, allocations: 4.906 kB / 2.891 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 5.335e-05/6.804, allocations: 64.03 kB / 2.891 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 1.679e-05/6.804, allocations: 77.11 kB / 2.891 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/6.804, allocations: 2.062 kB / 2.891 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.097e-06/6.804, allocations: 5.094 kB / 2.891 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.548e-05/6.804, allocations: 0.5 kB / 2.891 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-06/6.804, allocations: 4.406 kB / 2.891 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.22e-05/6.804, allocations: 76.34 kB / 2.891 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.000225/6.804, allocations: 4.656 kB / 2.891 GB, free: 113.4 MB / 0.5105 GB 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) * 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 8.599e-05/6.804, allocations: 94.06 kB / 2.891 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 6.172e-05/6.804, allocations: 29.7 kB / 2.891 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/6.804, allocations: 0 / 2.891 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 1.411e-05/6.804, allocations: 37.64 kB / 2.891 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.017e-05/6.804, allocations: 7.797 kB / 2.891 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001164/6.804, allocations: 43.8 kB / 2.891 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/6.805, allocations: 0.6802 MB / 2.892 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of SimCode: time 3.3e-07/6.805, allocations: 0 / 2.892 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of Templates: time 0.001544/6.806, allocations: 195.6 kB / 2.892 GB, free: 128.3 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) 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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches