Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.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.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",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.001134/0.001134, allocations: 189.1 kB / 7.804 MB, free: 2.488 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.371/1.371, 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.0009498/0.0009499, allocations: 83.5 kB / 261.4 MB, free: 13.56 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.1846/0.1846, allocations: 43.49 MB / 352.8 MB, free: 1.969 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1876/0.3722, allocations: 64.97 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.6617, allocations: 58.83 MB / 476.6 MB, free: 5.312 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1235/0.7852, allocations: 83.98 MB / 0.5475 GB, free: 15.06 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001847/0.7855, allocations: 63.47 kB / 0.5476 GB, free: 15 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0109/0.7964, allocations: 3.414 MB / 0.5509 GB, free: 11.55 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.7965, allocations: 8 kB / 0.5509 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.099e-05/0.7965, allocations: 11.91 kB / 0.5509 GB, free: 11.53 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002621/0.7968, allocations: 175 kB / 0.5511 GB, free: 11.32 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.7968, allocations: 7.984 kB / 0.5511 GB, free: 11.31 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.063e-05/0.7969, allocations: 4 kB / 0.5511 GB, free: 11.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.941e-05/0.797, allocations: 15.98 kB / 0.5511 GB, free: 11.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000171/0.7972, allocations: 93.58 kB / 0.5512 GB, free: 11.19 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.7972, allocations: 3.906 kB / 0.5512 GB, free: 11.19 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.7972, allocations: 3.938 kB / 0.5512 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.7972, allocations: 0 / 0.5512 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002061/0.7974, allocations: 142.2 kB / 0.5513 GB, free: 11.01 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.645e-05/0.7975, allocations: 50.62 kB / 0.5514 GB, free: 10.95 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.33e-05/0.7976, allocations: 20.86 kB / 0.5514 GB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.7976, allocations: 4 kB / 0.5514 GB, free: 10.92 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002401/0.7979, allocations: 139.2 kB / 0.5515 GB, free: 10.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.7979, allocations: 0 / 0.5515 GB, free: 10.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002982/0.7982, allocations: 89.53 kB / 0.5516 GB, free: 10.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.7982, allocations: 59.39 kB / 0.5517 GB, free: 10.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.506e-05/0.7983, allocations: 96.89 kB / 0.5518 GB, free: 10.51 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.7984, allocations: 33.7 kB / 0.5518 GB, free: 10.47 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.049e-05/0.7984, allocations: 80.33 kB / 0.5519 GB, free: 10.38 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.833e-05/0.7985, allocations: 23.7 kB / 0.5519 GB, free: 10.36 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.21e-06/0.7985, allocations: 0 / 0.5519 GB, free: 10.36 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.7986, allocations: 322.8 kB / 0.5522 GB, free: 10.04 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.575e-05/0.7987, allocations: 19.98 kB / 0.5522 GB, free: 10.02 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.138e-05/0.7988, allocations: 70.8 kB / 0.5523 GB, free: 9.922 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.789e-05/0.7989, allocations: 35.92 kB / 0.5523 GB, free: 9.887 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.7989, allocations: 0 / 0.5523 GB, free: 9.887 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002174/0.7991, allocations: 117.4 kB / 0.5524 GB, free: 9.766 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.7991, allocations: 4 kB / 0.5524 GB, free: 9.762 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.7991, allocations: 224 / 0.5524 GB, free: 9.762 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.7992, allocations: 11.98 kB / 0.5525 GB, free: 9.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.331e-05/0.7993, allocations: 12 kB / 0.5525 GB, free: 9.738 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.7993, allocations: 7.938 kB / 0.5525 GB, free: 9.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.782e-05/0.7993, allocations: 7.906 kB / 0.5525 GB, free: 9.723 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.7994, allocations: 11.98 kB / 0.5525 GB, free: 9.711 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = false ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,samples) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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 0.0001523/0.7995, allocations: 110.3 kB / 0.5526 GB, free: 9.598 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.563e-05/0.7995, allocations: 7.906 kB / 0.5526 GB, free: 9.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.763e-05/0.7996, allocations: 20.05 kB / 0.5526 GB, free: 9.57 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.7996, allocations: 0 / 0.5526 GB, free: 9.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.7996, allocations: 0 / 0.5526 GB, free: 9.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.7996, allocations: 0 / 0.5526 GB, free: 9.57 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001535/0.7998, allocations: 158.3 kB / 0.5528 GB, free: 9.379 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.7998, allocations: 0 / 0.5528 GB, free: 9.379 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.082e-05/0.7999, allocations: 11.92 kB / 0.5528 GB, free: 9.367 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.7999, allocations: 4 kB / 0.5528 GB, free: 9.363 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.7999, allocations: 0 / 0.5528 GB, free: 9.363 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.7999, allocations: 0 / 0.5528 GB, free: 9.363 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.7999, allocations: 4 kB / 0.5528 GB, free: 9.359 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002162/0.8001, allocations: 129 kB / 0.5529 GB, free: 9.215 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003269/0.8005, allocations: 493.3 kB / 0.5534 GB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.8005, allocations: 85.02 kB / 0.5535 GB, free: 8.609 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.752e-05/0.8005, allocations: 7.984 kB / 0.5535 GB, free: 8.602 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.8007, allocations: 19.98 kB / 0.5535 GB, free: 8.582 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.767e-05/0.8008, allocations: 7.984 kB / 0.5535 GB, free: 8.574 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.8008, allocations: 8 kB / 0.5535 GB, free: 8.566 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.218e-05/0.8008, allocations: 79.28 kB / 0.5536 GB, free: 8.488 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008762/0.8017, allocations: 63.92 kB / 0.5537 GB, free: 8.426 MB / 394.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: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.00042/0.8021, allocations: 187 kB / 0.5538 GB, free: 8.238 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001755/0.8023, allocations: 93.81 kB / 0.5539 GB, free: 8.141 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.8023, allocations: 4 kB / 0.5539 GB, free: 8.137 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.839e-05/0.8024, allocations: 27.98 kB / 0.5539 GB, free: 8.109 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001128/0.8025, allocations: 8.094 kB / 0.554 GB, free: 8.102 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000353/0.8029, allocations: 107.6 kB / 0.5541 GB, free: 7.973 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002974/0.8032, allocations: 0.7036 MB / 0.5547 GB, free: 7.242 MB / 394.7 MB Notification: Performance of SimCode: time 2.2e-07/0.8032, allocations: 0 / 0.5547 GB, free: 7.242 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1)