Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.00118/0.00118, allocations: 193.1 kB / 7.805 MB, free: 2.5 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.432/1.432, 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.001043/0.001042, allocations: 98.33 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.1789/0.1789, allocations: 43.49 MB / 352.8 MB, free: 1.984 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.197/0.376, allocations: 64.97 MB / 417.8 MB, free: 40.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.6632, allocations: 58.83 MB / 476.6 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1274/0.7907, allocations: 87.66 MB / 0.5511 GB, free: 11.26 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.7909, allocations: 71.47 kB / 0.5512 GB, free: 11.2 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 7.386/8.177, allocations: 2.31 GB / 2.862 GB, free: 137.3 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/8.178, allocations: 11.78 kB / 2.862 GB, free: 137.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.672e-05/8.178, allocations: 11.45 kB / 2.862 GB, free: 137.3 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.076e-05/8.178, allocations: 160.4 kB / 2.862 GB, free: 137.1 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/8.178, allocations: 0 / 2.862 GB, free: 137.1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.879e-06/8.178, allocations: 0 / 2.862 GB, free: 137.1 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.692e-05/8.178, allocations: 4.594 kB / 2.862 GB, free: 137.1 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.866e-05/8.178, allocations: 30.44 kB / 2.862 GB, free: 137.1 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/8.178, allocations: 3.906 kB / 2.862 GB, free: 137 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/8.178, allocations: 0 / 2.862 GB, free: 137 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/8.178, allocations: 3.469 kB / 2.862 GB, free: 137 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001068/8.178, allocations: 123.4 kB / 2.862 GB, free: 136.9 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.206e-05/8.178, allocations: 20.2 kB / 2.862 GB, free: 136.9 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.156e-05/8.178, allocations: 4.859 kB / 2.862 GB, free: 136.9 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/8.178, allocations: 0 / 2.862 GB, free: 136.9 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.075e-05/8.178, allocations: 56.88 kB / 2.862 GB, free: 136.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/8.178, allocations: 11.31 kB / 2.862 GB, free: 136.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001843/8.178, allocations: 30.88 kB / 2.862 GB, free: 136.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/8.178, allocations: 81.66 kB / 2.862 GB, free: 136.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.78e-05/8.178, allocations: 85 kB / 2.862 GB, free: 136.6 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/8.178, allocations: 26.22 kB / 2.862 GB, free: 136.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.023e-05/8.178, allocations: 84.08 kB / 2.862 GB, free: 136.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.68e-05/8.179, allocations: 3.906 kB / 2.862 GB, free: 136.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-06/8.179, allocations: 3.469 kB / 2.862 GB, free: 136.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.269e-05/8.179, allocations: 311.4 kB / 2.863 GB, free: 136.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.011e-05/8.179, allocations: 3.938 kB / 2.863 GB, free: 136.1 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.505e-06/8.179, allocations: 0.6094 kB / 2.863 GB, free: 136.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.014e-05/8.179, allocations: 0 / 2.863 GB, free: 136.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/8.179, allocations: 3.719 kB / 2.863 GB, free: 136.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.886e-05/8.179, allocations: 35.31 kB / 2.863 GB, free: 136.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/8.179, allocations: 14.06 kB / 2.863 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/8.179, allocations: 0 / 2.863 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/8.179, allocations: 0.6562 kB / 2.863 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.796e-06/8.179, allocations: 4 kB / 2.863 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/8.179, allocations: 0 / 2.863 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.959e-05/8.179, allocations: 4.422 kB / 2.863 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/8.179, allocations: 4 kB / 2.863 GB, free: 136.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 8.847e-05/8.179, allocations: 135.2 kB / 2.863 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.019e-05/8.179, allocations: 0 / 2.863 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.978e-05/8.179, allocations: 3.656 kB / 2.863 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/8.179, allocations: 0 / 2.863 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/8.179, allocations: 0.7031 kB / 2.863 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/8.179, allocations: 0 / 2.863 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.649e-05/8.179, allocations: 131.4 kB / 2.863 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/8.179, allocations: 0.6562 kB / 2.863 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.793e-06/8.179, allocations: 0 / 2.863 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/8.179, allocations: 3.469 kB / 2.863 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/8.179, allocations: 0.75 kB / 2.863 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/8.179, allocations: 0 / 2.863 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/8.179, allocations: 0 / 2.863 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.392e-05/8.179, allocations: 66.88 kB / 2.863 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002036/8.179, allocations: 451.2 kB / 2.863 GB, free: 135.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.275e-05/8.18, allocations: 82.52 kB / 2.863 GB, free: 135.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.561e-05/8.18, allocations: 0 / 2.863 GB, free: 135.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.421e-05/8.18, allocations: 7.844 kB / 2.863 GB, free: 135.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.791e-05/8.18, allocations: 0 / 2.863 GB, free: 135.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/8.18, allocations: 0 / 2.863 GB, free: 135.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.974e-05/8.18, allocations: 79.33 kB / 2.864 GB, free: 135.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0009514/8.181, allocations: 3.969 kB / 2.864 GB, free: 135.1 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 0.0001266/8.181, allocations: 91.81 kB / 2.864 GB, free: 135 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 8.669e-05/8.181, allocations: 30.39 kB / 2.864 GB, free: 135 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/8.181, allocations: 3.938 kB / 2.864 GB, free: 135 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.686e-05/8.181, allocations: 33.36 kB / 2.864 GB, free: 134.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000117/8.181, allocations: 11.56 kB / 2.864 GB, free: 134.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000188/8.181, allocations: 50.47 kB / 2.864 GB, free: 134.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002802/8.181, allocations: 0.6829 MB / 2.864 GB, free: 150.2 MB / 0.4948 GB Notification: Performance of SimCode: time 4.51e-07/8.181, allocations: 3.938 kB / 2.864 GB, free: 150.2 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat does not exist to compare? outputFormat=mat