Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0008926/0.0008926, allocations: 184.6 kB / 7.802 MB, free: 2.328 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.043/1.043, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0007929/0.0007929, allocations: 90.78 kB / 261.4 MB, free: 13.55 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.1541/0.1541, allocations: 43.49 MB / 352.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.851e-06/5.871e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2313, allocations: 58.84 MB / 476.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1015/0.3329, allocations: 86.23 MB / 0.5496 GB, free: 12.73 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.3331, allocations: 63.97 kB / 0.5497 GB, free: 12.66 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.311/3.644, allocations: 1.006 GB / 1.555 GB, free: 140.7 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.532e-06/3.644, allocations: 3.969 kB / 1.555 GB, free: 140.7 MB / 490.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.004537/3.648, allocations: 435.1 kB / 1.556 GB, free: 140.3 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/3.648, allocations: 7.875 kB / 1.556 GB, free: 140.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.246e-05/3.648, allocations: 0 / 1.556 GB, free: 140.3 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.741e-05/3.648, allocations: 159.1 kB / 1.556 GB, free: 140.1 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.348e-06/3.649, allocations: 6.594 kB / 1.556 GB, free: 140.1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.472e-06/3.649, allocations: 0 / 1.556 GB, free: 140.1 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.539e-05/3.649, allocations: 0 / 1.556 GB, free: 140.1 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.079e-05/3.649, allocations: 41.17 kB / 1.556 GB, free: 140.1 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.28e-06/3.649, allocations: 0 / 1.556 GB, free: 140.1 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-06/3.649, allocations: 7.031 kB / 1.556 GB, free: 140.1 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/3.649, allocations: 0 / 1.556 GB, free: 140.1 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.325e-05/3.649, allocations: 125.8 kB / 1.556 GB, free: 139.9 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.506e-05/3.649, allocations: 18.55 kB / 1.556 GB, free: 139.9 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.112e-05/3.649, allocations: 4.859 kB / 1.556 GB, free: 139.9 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.081e-06/3.649, allocations: 0 / 1.556 GB, free: 139.9 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/3.649, allocations: 61.08 kB / 1.556 GB, free: 139.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/3.649, allocations: 0 / 1.556 GB, free: 139.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.000118/3.649, allocations: 39.58 kB / 1.556 GB, free: 139.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.834e-05/3.649, allocations: 77.11 kB / 1.556 GB, free: 139.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.3e-05/3.649, allocations: 85 kB / 1.556 GB, free: 139.6 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.178e-06/3.649, allocations: 29.67 kB / 1.556 GB, free: 139.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.335e-05/3.649, allocations: 80.14 kB / 1.556 GB, free: 139.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/3.649, allocations: 3.906 kB / 1.556 GB, free: 139.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-06/3.649, allocations: 3.969 kB / 1.556 GB, free: 139.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.301e-05/3.649, allocations: 318.1 kB / 1.557 GB, free: 139.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.672e-06/3.649, allocations: 0 / 1.557 GB, free: 139.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.709e-06/3.649, allocations: 3.062 kB / 1.557 GB, free: 139.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.692e-05/3.649, allocations: 3.969 kB / 1.557 GB, free: 139.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/3.649, allocations: 3.828 kB / 1.557 GB, free: 139.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.728e-05/3.649, allocations: 33.11 kB / 1.557 GB, free: 139.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/3.649, allocations: 3.969 kB / 1.557 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/3.649, allocations: 3.969 kB / 1.557 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/3.649, allocations: 0 / 1.557 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/3.649, allocations: 3.969 kB / 1.557 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/3.649, allocations: 0 / 1.557 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.148e-05/3.649, allocations: 3.844 kB / 1.557 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/3.649, allocations: 3.906 kB / 1.557 GB, free: 139.1 MB / 490.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 () * 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.07e-05/3.649, allocations: 126.7 kB / 1.557 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.233e-06/3.649, allocations: 3.969 kB / 1.557 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.145e-05/3.649, allocations: 3 kB / 1.557 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/3.649, allocations: 7.484 kB / 1.557 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/3.649, allocations: 0 / 1.557 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/3.649, allocations: 0 / 1.557 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.618e-05/3.649, allocations: 126.2 kB / 1.557 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-07/3.649, allocations: 0 / 1.557 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/3.649, allocations: 3.969 kB / 1.557 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/3.649, allocations: 0 / 1.557 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.932e-06/3.65, allocations: 0 / 1.557 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.91e-07/3.65, allocations: 0 / 1.557 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/3.65, allocations: 3.469 kB / 1.557 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 5.336e-05/3.65, allocations: 63.67 kB / 1.557 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.278e-05/3.65, allocations: 81.05 kB / 1.557 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/3.65, allocations: 3.938 kB / 1.557 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.188e-06/3.65, allocations: 3.469 kB / 1.557 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.845e-05/3.65, allocations: 3.938 kB / 1.557 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/3.65, allocations: 0 / 1.557 GB, free: 138.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.943e-05/3.65, allocations: 79.03 kB / 1.557 GB, free: 138.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002063/3.65, allocations: 7.906 kB / 1.557 GB, free: 138.6 MB / 490.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) * 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.19e-05/3.65, allocations: 91.06 kB / 1.557 GB, free: 138.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 5.495e-05/3.65, allocations: 29.64 kB / 1.557 GB, free: 138.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/3.65, allocations: 0 / 1.557 GB, free: 138.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.173e-05/3.65, allocations: 29.64 kB / 1.557 GB, free: 138.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.4e-05/3.65, allocations: 0 / 1.557 GB, free: 138.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001109/3.65, allocations: 55.2 kB / 1.557 GB, free: 138.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/3.65, allocations: 0.6879 MB / 1.558 GB, free: 137.7 MB / 490.7 MB Notification: Performance of SimCode: time 2.51e-07/3.65, allocations: 3.844 kB / 1.558 GB, free: 137.7 MB / 490.7 MB Notification: Performance of Templates: time 0.001376/3.652, allocations: 178.8 kB / 1.558 GB, free: 137.7 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches