Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001105/0.001105, allocations: 195.8 kB / 8.535 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 225.5 MB / 234.4 MB, free: 3.426 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009015/0.0009015, allocations: 94.78 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1819/0.1819, allocations: 45.14 MB / 383.3 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.592e-06/6.622e-06, allocations: 0 / 452.6 MB, free: 76.21 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1206, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3674/0.4881, allocations: 89.81 MB / 0.5915 GB, free: 13.41 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.4884, allocations: 69.45 kB / 0.5915 GB, free: 13.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 7.344/7.833, allocations: 2.478 GB / 3.069 GB, free: 94.9 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.038e-05/7.833, allocations: 0 / 3.069 GB, free: 94.9 MB / 0.5417 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.005841/7.839, allocations: 482.3 kB / 3.07 GB, free: 94.4 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/7.839, allocations: 8.031 kB / 3.07 GB, free: 94.39 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.423e-05/7.839, allocations: 0 / 3.07 GB, free: 94.39 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.129e-05/7.839, allocations: 159.1 kB / 3.07 GB, free: 94.2 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/7.839, allocations: 4 kB / 3.07 GB, free: 94.2 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/7.839, allocations: 0 / 3.07 GB, free: 94.2 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.402e-05/7.839, allocations: 3.875 kB / 3.07 GB, free: 94.2 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.868e-05/7.839, allocations: 29.69 kB / 3.07 GB, free: 94.16 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/7.839, allocations: 7.906 kB / 3.07 GB, free: 94.15 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/7.839, allocations: 0 / 3.07 GB, free: 94.15 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/7.839, allocations: 0 / 3.07 GB, free: 94.15 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001072/7.839, allocations: 122.2 kB / 3.07 GB, free: 94 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 4.151e-05/7.839, allocations: 22.34 kB / 3.07 GB, free: 93.97 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.591e-05/7.839, allocations: 16.86 kB / 3.07 GB, free: 93.95 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 9.608e-06/7.839, allocations: 0 / 3.07 GB, free: 93.95 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/7.839, allocations: 56.27 kB / 3.07 GB, free: 93.88 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/7.839, allocations: 0 / 3.07 GB, free: 93.88 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1): time 0.0001473/7.839, allocations: 33.69 kB / 3.07 GB, free: 93.84 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/7.839, allocations: 77.11 kB / 3.07 GB, free: 93.75 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.235e-05/7.839, allocations: 85 kB / 3.07 GB, free: 93.66 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.304e-06/7.839, allocations: 25.7 kB / 3.07 GB, free: 93.63 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 1.525e-05/7.84, allocations: 83.98 kB / 3.07 GB, free: 93.55 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/7.84, allocations: 7.906 kB / 3.07 GB, free: 93.54 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.763e-06/7.84, allocations: 0 / 3.07 GB, free: 93.54 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 5.582e-05/7.84, allocations: 310.8 kB / 3.071 GB, free: 93.23 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.323e-06/7.84, allocations: 4 kB / 3.071 GB, free: 93.22 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.859e-06/7.84, allocations: 0 / 3.071 GB, free: 93.22 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.328e-05/7.84, allocations: 7.938 kB / 3.071 GB, free: 93.21 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/7.84, allocations: 0 / 3.071 GB, free: 93.21 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1) (initialization): time 3.842e-05/7.84, allocations: 37.59 kB / 3.071 GB, free: 93.18 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/7.84, allocations: 4.844 kB / 3.071 GB, free: 93.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/7.84, allocations: 0 / 3.071 GB, free: 93.17 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/7.84, allocations: 0 / 3.071 GB, free: 93.17 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-06/7.84, allocations: 0 / 3.071 GB, free: 93.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/7.84, allocations: 0 / 3.071 GB, free: 93.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.48e-05/7.84, allocations: 7.906 kB / 3.071 GB, free: 93.16 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/7.84, allocations: 0 / 3.071 GB, free: 93.16 MB / 0.5417 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 7.204e-05/7.84, allocations: 130.5 kB / 3.071 GB, free: 93.03 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.713e-06/7.84, allocations: 0 / 3.071 GB, free: 93.03 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.244e-05/7.84, allocations: 11.7 kB / 3.071 GB, free: 93.01 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/7.84, allocations: 0 / 3.071 GB, free: 93.01 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/7.84, allocations: 4 kB / 3.071 GB, free: 93.01 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/7.84, allocations: 3.984 kB / 3.071 GB, free: 93 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.261e-05/7.84, allocations: 126.2 kB / 3.071 GB, free: 92.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/7.84, allocations: 0 / 3.071 GB, free: 92.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/7.84, allocations: 0 / 3.071 GB, free: 92.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/7.84, allocations: 4 kB / 3.071 GB, free: 92.84 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-06/7.84, allocations: 5.797 kB / 3.071 GB, free: 92.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/7.84, allocations: 3.844 kB / 3.071 GB, free: 92.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/7.84, allocations: 3.938 kB / 3.071 GB, free: 92.83 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 5.527e-05/7.84, allocations: 65.03 kB / 3.071 GB, free: 92.75 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 1.644e-05/7.84, allocations: 77.11 kB / 3.071 GB, free: 92.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/7.84, allocations: 0 / 3.071 GB, free: 92.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.979e-06/7.84, allocations: 0 / 3.071 GB, free: 92.66 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.765e-05/7.84, allocations: 3.938 kB / 3.071 GB, free: 92.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/7.84, allocations: 4 kB / 3.071 GB, free: 92.65 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.754e-05/7.84, allocations: 75.28 kB / 3.071 GB, free: 92.58 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002476/7.84, allocations: 4 kB / 3.071 GB, free: 92.57 MB / 0.5417 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 9.612e-05/7.841, allocations: 95.23 kB / 3.071 GB, free: 92.47 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 5.924e-05/7.841, allocations: 25.7 kB / 3.071 GB, free: 92.44 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/7.841, allocations: 0 / 3.071 GB, free: 92.44 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 1.368e-05/7.841, allocations: 37.64 kB / 3.071 GB, free: 92.4 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001088/7.841, allocations: 11.22 kB / 3.071 GB, free: 92.39 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001296/7.841, allocations: 43.8 kB / 3.071 GB, free: 92.33 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/7.841, allocations: 0.6841 MB / 3.072 GB, free: 107.6 MB / 0.5573 GB Notification: Performance of SimCode: time 4.41e-07/7.841, allocations: 0 / 3.072 GB, free: 107.6 MB / 0.5573 GB Notification: Performance of Templates: time 0.00167/7.843, allocations: 191.2 kB / 3.072 GB, free: 107.5 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches