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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001741/0.001741, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.176/1.176, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008482/0.0008482, allocations: 90.81 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.167/0.167, allocations: 45.15 MB / 383.4 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1998/0.3669, allocations: 69.36 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08589/0.4528, allocations: 63.24 MB / 0.5039 GB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2615/0.7143, allocations: 89.8 MB / 0.5916 GB, free: 13 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001655/0.7145, allocations: 63.66 kB / 0.5916 GB, free: 12.97 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 6.513/7.227, allocations: 2.48 GB / 3.071 GB, free: 167.6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/7.227, allocations: 11.62 kB / 3.071 GB, free: 167.6 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.986e-05/7.227, allocations: 0 / 3.071 GB, free: 167.6 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.011e-05/7.228, allocations: 168.7 kB / 3.071 GB, free: 167.4 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/7.228, allocations: 3.969 kB / 3.071 GB, free: 167.4 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.644e-06/7.228, allocations: 0 / 3.071 GB, free: 167.4 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.762e-05/7.228, allocations: 0 / 3.071 GB, free: 167.4 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.769e-05/7.228, allocations: 29.64 kB / 3.071 GB, free: 167.4 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/7.228, allocations: 3.906 kB / 3.071 GB, free: 167.4 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/7.228, allocations: 0 / 3.071 GB, free: 167.4 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/7.228, allocations: 0 / 3.071 GB, free: 167.4 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.221e-05/7.228, allocations: 129.1 kB / 3.072 GB, free: 167.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 2.573e-05/7.228, allocations: 22.3 kB / 3.072 GB, free: 167.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.037e-05/7.228, allocations: 4.859 kB / 3.072 GB, free: 167.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/7.228, allocations: 0 / 3.072 GB, free: 167.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/7.228, allocations: 63.84 kB / 3.072 GB, free: 167.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/7.228, allocations: 0 / 3.072 GB, free: 167.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1): time 9.756e-05/7.228, allocations: 33.14 kB / 3.072 GB, free: 167.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.763e-05/7.228, allocations: 80.81 kB / 3.072 GB, free: 167 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.336e-05/7.228, allocations: 85 kB / 3.072 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.01e-06/7.228, allocations: 30.48 kB / 3.072 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 8.085e-06/7.228, allocations: 80.14 kB / 3.072 GB, free: 166.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.222e-05/7.228, allocations: 3.906 kB / 3.072 GB, free: 166.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.713e-06/7.228, allocations: 0 / 3.072 GB, free: 166.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 3.061e-05/7.228, allocations: 314.2 kB / 3.072 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.161e-06/7.228, allocations: 3.812 kB / 3.072 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.286e-06/7.228, allocations: 3.844 kB / 3.072 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.003e-05/7.228, allocations: 3.938 kB / 3.072 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/7.228, allocations: 0 / 3.072 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1) (initialization): time 3.63e-05/7.228, allocations: 30.39 kB / 3.072 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.955e-06/7.228, allocations: 3.969 kB / 3.072 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/7.228, allocations: 3.5 kB / 3.072 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/7.228, allocations: 3.797 kB / 3.072 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/7.228, allocations: 3.969 kB / 3.072 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.985e-06/7.228, allocations: 0 / 3.072 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.161e-05/7.228, allocations: 3.906 kB / 3.072 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-06/7.228, allocations: 0 / 3.072 GB, free: 166.5 MB / 0.5261 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.243e-05/7.228, allocations: 130.6 kB / 3.072 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.865e-06/7.228, allocations: 7.781 kB / 3.072 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.487e-06/7.228, allocations: 14.33 kB / 3.072 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/7.228, allocations: 0 / 3.072 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/7.228, allocations: 0 / 3.072 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/7.228, allocations: 0 / 3.072 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.311e-05/7.228, allocations: 130 kB / 3.073 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/7.228, allocations: 3.969 kB / 3.073 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/7.228, allocations: 0 / 3.073 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/7.228, allocations: 0 / 3.073 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.799e-06/7.228, allocations: 3.469 kB / 3.073 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/7.228, allocations: 3.469 kB / 3.073 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/7.228, allocations: 0 / 3.073 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 4.339e-05/7.228, allocations: 65.48 kB / 3.073 GB, free: 166.1 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000101/7.229, allocations: 454.5 kB / 3.073 GB, free: 165.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 1.037e-05/7.229, allocations: 79.73 kB / 3.073 GB, free: 165.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.131e-05/7.229, allocations: 0 / 3.073 GB, free: 165.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-06/7.229, allocations: 3.906 kB / 3.073 GB, free: 165.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.144e-05/7.229, allocations: 0 / 3.073 GB, free: 165.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/7.229, allocations: 3.969 kB / 3.073 GB, free: 165.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.478e-06/7.229, allocations: 75.28 kB / 3.073 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0007667/7.229, allocations: 7.406 kB / 3.073 GB, free: 165.5 MB / 0.5261 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 7.324e-05/7.229, allocations: 94.8 kB / 3.073 GB, free: 165.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 4.766e-05/7.23, allocations: 29.67 kB / 3.073 GB, free: 165.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/7.23, allocations: 0 / 3.073 GB, free: 165.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 1.015e-05/7.23, allocations: 25.7 kB / 3.073 GB, free: 165.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.239e-05/7.23, allocations: 3.969 kB / 3.073 GB, free: 165.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 9.983e-05/7.23, allocations: 62.03 kB / 3.073 GB, free: 165.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/7.23, allocations: 0.6802 MB / 3.074 GB, free: 180.6 MB / 0.5417 GB Notification: Performance of SimCode: time 3.21e-07/7.23, allocations: 0 / 3.074 GB, free: 180.6 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat does not exist to compare? outputFormat=mat