Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.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.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.000995/0.0009952, allocations: 180.8 kB / 8.524 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.151/1.151, allocations: 221.4 MB / 230.3 MB, free: 7.68 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.0009839/0.0009839, allocations: 93.91 kB / 281.2 MB, free: 5.504 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.2198/0.2198, allocations: 44.15 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1911/0.411, allocations: 68.03 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09454/0.5055, allocations: 61.91 MB / 0.4942 GB, free: 1.508 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2478/0.7534, allocations: 85.09 MB / 0.5773 GB, free: 11.61 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000174/0.7536, allocations: 58.69 kB / 0.5773 GB, free: 11.56 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.01077/0.7644, allocations: 3.422 MB / 0.5807 GB, free: 8.102 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.7644, allocations: 11.94 kB / 0.5807 GB, free: 8.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.958e-05/0.7645, allocations: 13.33 kB / 0.5807 GB, free: 8.078 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002198/0.7647, allocations: 186.9 kB / 0.5809 GB, free: 7.855 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.7647, allocations: 4 kB / 0.5809 GB, free: 7.852 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.7648, allocations: 0 / 0.5809 GB, free: 7.852 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.731e-05/0.7648, allocations: 19.98 kB / 0.5809 GB, free: 7.832 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001464/0.765, allocations: 89.62 kB / 0.581 GB, free: 7.738 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.765, allocations: 0 / 0.581 GB, free: 7.738 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.765, allocations: 7.906 kB / 0.581 GB, free: 7.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.7651, allocations: 3.984 kB / 0.581 GB, free: 7.727 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000153/0.7652, allocations: 150.2 kB / 0.5811 GB, free: 7.543 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.665e-05/0.7653, allocations: 46.52 kB / 0.5812 GB, free: 7.488 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.915e-05/0.7653, allocations: 24.84 kB / 0.5812 GB, free: 7.461 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.157e-05/0.7654, allocations: 0 / 0.5812 GB, free: 7.461 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002135/0.7656, allocations: 136.2 kB / 0.5813 GB, free: 7.316 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.693e-06/0.7656, allocations: 0 / 0.5813 GB, free: 7.316 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002414/0.7658, allocations: 81.66 kB / 0.5814 GB, free: 7.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.7659, allocations: 63.34 kB / 0.5815 GB, free: 7.156 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.551e-05/0.7659, allocations: 89 kB / 0.5816 GB, free: 7.062 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.947e-05/0.766, allocations: 37.69 kB / 0.5816 GB, free: 7.02 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.37e-05/0.766, allocations: 84.23 kB / 0.5817 GB, free: 6.93 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.027e-05/0.7661, allocations: 23.66 kB / 0.5817 GB, free: 6.906 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.179e-06/0.7661, allocations: 0 / 0.5817 GB, free: 6.906 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.218e-05/0.7662, allocations: 318.8 kB / 0.582 GB, free: 6.586 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.529e-05/0.7662, allocations: 16 kB / 0.582 GB, free: 6.57 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.51e-05/0.7663, allocations: 77.67 kB / 0.5821 GB, free: 6.473 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.164e-05/0.7664, allocations: 35.97 kB / 0.5821 GB, free: 6.438 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.7664, allocations: 0 / 0.5821 GB, free: 6.438 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001903/0.7666, allocations: 117.4 kB / 0.5822 GB, free: 6.316 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.7666, allocations: 8 kB / 0.5823 GB, free: 6.309 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.7666, allocations: 0 / 0.5823 GB, free: 6.309 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.7666, allocations: 4 kB / 0.5823 GB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.564e-05/0.7667, allocations: 23.92 kB / 0.5823 GB, free: 6.285 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.7667, allocations: 4.219 kB / 0.5823 GB, free: 6.281 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.125e-05/0.7668, allocations: 8 kB / 0.5823 GB, free: 6.273 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.7668, allocations: 11.94 kB / 0.5823 GB, free: 6.262 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.000114/0.7669, allocations: 116.9 kB / 0.5824 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.229e-05/0.767, allocations: 7.906 kB / 0.5824 GB, free: 6.133 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.644e-05/0.767, allocations: 8.047 kB / 0.5824 GB, free: 6.125 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.767, allocations: 4 kB / 0.5824 GB, free: 6.121 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.767, allocations: 0 / 0.5824 GB, free: 6.121 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.767, allocations: 7.938 kB / 0.5824 GB, free: 6.113 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001306/0.7672, allocations: 154.3 kB / 0.5826 GB, free: 5.926 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.7672, allocations: 0 / 0.5826 GB, free: 5.926 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.041e-05/0.7672, allocations: 8 kB / 0.5826 GB, free: 5.918 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.7672, allocations: 0 / 0.5826 GB, free: 5.918 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.7673, allocations: 11.92 kB / 0.5826 GB, free: 5.906 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.7673, allocations: 0 / 0.5826 GB, free: 5.906 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.7673, allocations: 0 / 0.5826 GB, free: 5.906 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001856/0.7675, allocations: 113 kB / 0.5827 GB, free: 5.777 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002707/0.7677, allocations: 497.3 kB / 0.5832 GB, free: 5.27 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.532e-05/0.7678, allocations: 89 kB / 0.5833 GB, free: 5.164 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.338e-05/0.7678, allocations: 0 / 0.5833 GB, free: 5.164 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.768, allocations: 23.98 kB / 0.5833 GB, free: 5.141 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.283e-05/0.768, allocations: 7.984 kB / 0.5833 GB, free: 5.133 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.7681, allocations: 11.98 kB / 0.5833 GB, free: 5.121 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.859e-05/0.7681, allocations: 75.28 kB / 0.5834 GB, free: 5.047 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008812/0.769, allocations: 59.94 kB / 0.5834 GB, free: 4.988 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.0003771/0.7694, allocations: 206.1 kB / 0.5836 GB, free: 4.793 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001577/0.7695, allocations: 89.56 kB / 0.5837 GB, free: 4.699 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.7695, allocations: 0 / 0.5837 GB, free: 4.699 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.824e-05/0.7696, allocations: 32.42 kB / 0.5838 GB, free: 4.668 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001058/0.7697, allocations: 11.91 kB / 0.5838 GB, free: 4.656 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003404/0.7701, allocations: 103.7 kB / 0.5839 GB, free: 4.531 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002836/0.7704, allocations: 0.6997 MB / 0.5845 GB, free: 3.805 MB / 394.7 MB Notification: Performance of SimCode: time 2.8e-07/0.7704, allocations: 0 / 0.5845 GB, free: 3.805 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1)