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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [: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.0009527/0.0009557, allocations: 178.6 kB / 8.519 MB, free: 1.832 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.152/1.152, allocations: 221.4 MB / 230.3 MB, free: 7.645 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.0008526/0.0008526, allocations: 94.3 kB / 281.2 MB, free: 5.457 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.161/0.161, allocations: 44.14 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1788/0.3398, allocations: 68.03 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09765/0.4375, allocations: 61.9 MB / 0.4942 GB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2456/0.6831, allocations: 88.75 MB / 0.5808 GB, free: 8.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001805/0.6833, allocations: 63.97 kB / 0.5809 GB, free: 7.957 MB / 394.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 5.928/6.611, allocations: 2.31 GB / 2.891 GB, free: 98.39 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/6.611, allocations: 15.94 kB / 2.891 GB, free: 98.38 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.789e-05/6.611, allocations: 7.984 kB / 2.891 GB, free: 98.37 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.586e-05/6.611, allocations: 159.1 kB / 2.892 GB, free: 98.18 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/6.611, allocations: 0 / 2.892 GB, free: 98.18 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-06/6.611, allocations: 0 / 2.892 GB, free: 98.18 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.312e-05/6.611, allocations: 3.844 kB / 2.892 GB, free: 98.18 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.767e-05/6.611, allocations: 37.64 kB / 2.892 GB, free: 98.13 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.791e-06/6.611, allocations: 0 / 2.892 GB, free: 98.13 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-06/6.611, allocations: 3.906 kB / 2.892 GB, free: 98.13 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/6.611, allocations: 0 / 2.892 GB, free: 98.13 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.682e-05/6.612, allocations: 126.2 kB / 2.892 GB, free: 97.97 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 2.498e-05/6.612, allocations: 18.61 kB / 2.892 GB, free: 97.94 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.18e-05/6.612, allocations: 12.75 kB / 2.892 GB, free: 97.93 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 4.288e-06/6.612, allocations: 0 / 2.892 GB, free: 97.93 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/6.612, allocations: 56.27 kB / 2.892 GB, free: 97.86 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/6.612, allocations: 4.062 kB / 2.892 GB, free: 97.86 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1): time 9.982e-05/6.612, allocations: 33.64 kB / 2.892 GB, free: 97.82 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.951e-05/6.612, allocations: 81.11 kB / 2.892 GB, free: 97.72 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.676e-05/6.612, allocations: 85 kB / 2.892 GB, free: 97.63 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.2e-06/6.612, allocations: 29.53 kB / 2.892 GB, free: 97.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.556e-06/6.612, allocations: 84.08 kB / 2.892 GB, free: 97.52 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.325e-05/6.612, allocations: 3.906 kB / 2.892 GB, free: 97.51 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.403e-06/6.612, allocations: 0 / 2.892 GB, free: 97.51 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 3.448e-05/6.612, allocations: 314.8 kB / 2.892 GB, free: 97.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.21e-06/6.612, allocations: 0 / 2.892 GB, free: 97.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.687e-06/6.612, allocations: 4 kB / 2.892 GB, free: 97.19 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.106e-05/6.612, allocations: 0 / 2.892 GB, free: 97.19 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/6.612, allocations: 0 / 2.892 GB, free: 97.19 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.053e-05/6.612, allocations: 33.58 kB / 2.892 GB, free: 97.16 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.838e-06/6.612, allocations: 4 kB / 2.892 GB, free: 97.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/6.612, allocations: 4 kB / 2.892 GB, free: 97.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.388e-06/6.612, allocations: 0 / 2.892 GB, free: 97.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/6.612, allocations: 0.8438 kB / 2.892 GB, free: 97.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/6.612, allocations: 3.938 kB / 2.892 GB, free: 97.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.157e-05/6.612, allocations: 4 kB / 2.892 GB, free: 97.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/6.612, allocations: 3.906 kB / 2.892 GB, free: 97.14 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 4.52e-05/6.612, allocations: 138.5 kB / 2.893 GB, free: 96.99 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.153e-06/6.612, allocations: 0 / 2.893 GB, free: 96.99 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.848e-06/6.612, allocations: 6.953 kB / 2.893 GB, free: 96.98 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/6.612, allocations: 0 / 2.893 GB, free: 96.98 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/6.612, allocations: 0 / 2.893 GB, free: 96.98 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/6.612, allocations: 0.75 kB / 2.893 GB, free: 96.98 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.68e-05/6.612, allocations: 130.2 kB / 2.893 GB, free: 96.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/6.612, allocations: 3.984 kB / 2.893 GB, free: 96.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/6.612, allocations: 0 / 2.893 GB, free: 96.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/6.612, allocations: 0 / 2.893 GB, free: 96.82 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.54e-06/6.612, allocations: 0 / 2.893 GB, free: 96.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/6.612, allocations: 3.906 kB / 2.893 GB, free: 96.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/6.612, allocations: 0 / 2.893 GB, free: 96.82 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 4.686e-05/6.612, allocations: 64.98 kB / 2.893 GB, free: 96.73 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001147/6.612, allocations: 453.4 kB / 2.893 GB, free: 96.27 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 1.452e-05/6.612, allocations: 81.11 kB / 2.893 GB, free: 96.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/6.612, allocations: 0 / 2.893 GB, free: 96.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.257e-06/6.612, allocations: 0 / 2.893 GB, free: 96.18 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.25e-05/6.612, allocations: 13.12 kB / 2.893 GB, free: 96.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/6.612, allocations: 0 / 2.893 GB, free: 96.16 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.167e-05/6.612, allocations: 75.28 kB / 2.893 GB, free: 96.09 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008301/6.613, allocations: 4 kB / 2.893 GB, free: 96.09 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 6.221e-05/6.613, allocations: 97.88 kB / 2.893 GB, free: 95.99 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 5.119e-05/6.613, allocations: 29.7 kB / 2.893 GB, free: 95.95 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/6.613, allocations: 0 / 2.893 GB, free: 95.95 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 1.133e-05/6.613, allocations: 33.64 kB / 2.894 GB, free: 95.91 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.181e-05/6.614, allocations: 4 kB / 2.894 GB, free: 95.91 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001057/6.614, allocations: 51.78 kB / 2.894 GB, free: 95.84 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.018e-05/6.614, allocations: 0.6802 MB / 2.894 GB, free: 95.13 MB / 0.5105 GB Notification: Performance of SimCode: time 2.71e-07/6.614, allocations: 3.938 kB / 2.894 GB, free: 95.13 MB / 0.5105 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat does not exist to compare? outputFormat=mat