Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") [: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.001502/0.001502, allocations: 178.8 kB / 8.52 MB, free: 1.82 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.352/1.352, allocations: 221.4 MB / 230.3 MB, free: 7.684 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.0009748/0.0009748, allocations: 93.72 kB / 281.2 MB, free: 5.496 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.1601/0.1601, allocations: 44.14 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.274e-06/7.314e-06, allocations: 4.219 kB / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1206, allocations: 61.91 MB / 0.4941 GB, free: 1.609 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3381/0.4588, allocations: 87.3 MB / 0.5793 GB, free: 9.434 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/0.459, allocations: 65.12 kB / 0.5794 GB, free: 9.402 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.67/4.129, allocations: 1.006 GB / 1.585 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.342e-06/4.129, allocations: 4 kB / 1.585 GB, free: 113.8 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.004374/4.133, allocations: 433.9 kB / 1.586 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/4.134, allocations: 13.22 kB / 1.586 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.784e-05/4.134, allocations: 11.83 kB / 1.586 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.979e-05/4.134, allocations: 163.1 kB / 1.586 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/4.134, allocations: 0 / 1.586 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-06/4.134, allocations: 4 kB / 1.586 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.542e-05/4.134, allocations: 3.875 kB / 1.586 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.636e-05/4.134, allocations: 29.64 kB / 1.586 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/4.134, allocations: 0 / 1.586 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/4.134, allocations: 0 / 1.586 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/4.134, allocations: 7.906 kB / 1.586 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.662e-05/4.134, allocations: 126.2 kB / 1.586 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 2.976e-05/4.134, allocations: 14.58 kB / 1.586 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.352e-05/4.134, allocations: 8.766 kB / 1.586 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 8.886e-06/4.134, allocations: 4.094 kB / 1.586 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/4.134, allocations: 60.27 kB / 1.586 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/4.134, allocations: 0 / 1.586 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1): time 0.0001136/4.134, allocations: 33.64 kB / 1.586 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.226e-05/4.134, allocations: 77.11 kB / 1.586 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.606e-05/4.134, allocations: 85 kB / 1.586 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.101e-06/4.134, allocations: 29.61 kB / 1.586 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 1.134e-05/4.134, allocations: 80.14 kB / 1.586 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/4.134, allocations: 3.906 kB / 1.586 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-06/4.134, allocations: 4 kB / 1.586 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 4.185e-05/4.134, allocations: 314.8 kB / 1.587 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.793e-06/4.134, allocations: 0 / 1.587 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.539e-06/4.134, allocations: 0 / 1.587 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.286e-05/4.134, allocations: 0 / 1.587 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/4.134, allocations: 7.562 kB / 1.587 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.259e-05/4.134, allocations: 37.7 kB / 1.587 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/4.134, allocations: 4 kB / 1.587 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/4.134, allocations: 0 / 1.587 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/4.134, allocations: 0 / 1.587 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/4.134, allocations: 0 / 1.587 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.496e-06/4.134, allocations: 0 / 1.587 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.276e-05/4.134, allocations: 0 / 1.587 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/4.134, allocations: 4 kB / 1.587 GB, free: 112.1 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.095e-05/4.135, allocations: 142.5 kB / 1.587 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.704e-06/4.135, allocations: 0 / 1.587 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.124e-05/4.135, allocations: 6.953 kB / 1.587 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/4.135, allocations: 0 / 1.587 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/4.135, allocations: 4 kB / 1.587 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/4.135, allocations: 0 / 1.587 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.382e-05/4.135, allocations: 126.2 kB / 1.587 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/4.135, allocations: 11.92 kB / 1.587 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.8e-07/4.135, allocations: 0 / 1.587 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/4.135, allocations: 0 / 1.587 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/4.135, allocations: 7.844 kB / 1.587 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/4.135, allocations: 0 / 1.587 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/4.135, allocations: 0 / 1.587 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 5.149e-05/4.135, allocations: 53.14 kB / 1.587 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 1.688e-05/4.135, allocations: 85.02 kB / 1.587 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.378e-05/4.135, allocations: 3.984 kB / 1.587 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.618e-06/4.135, allocations: 0 / 1.587 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.431e-05/4.135, allocations: 3.906 kB / 1.587 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/4.135, allocations: 0 / 1.587 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.218e-05/4.135, allocations: 75.28 kB / 1.587 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.000235/4.135, allocations: 4 kB / 1.587 GB, free: 111.5 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.35e-05/4.135, allocations: 95.19 kB / 1.587 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 5.807e-05/4.135, allocations: 29.7 kB / 1.587 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/4.135, allocations: 0 / 1.587 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 1.23e-05/4.135, allocations: 33.7 kB / 1.587 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001014/4.135, allocations: 7.562 kB / 1.587 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000107/4.135, allocations: 44.06 kB / 1.587 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.799e-05/4.136, allocations: 0.6802 MB / 1.588 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of SimCode: time 3.71e-07/4.136, allocations: 0 / 1.588 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of Templates: time 0.001512/4.137, allocations: 192.4 kB / 1.588 GB, free: 110.4 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches