Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.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/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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: translateModel(Physiolibrary.Population.Examples.PredatorPrey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey") translateModel(Physiolibrary.Population.Examples.PredatorPrey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey") [: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.002966/0.002966, allocations: 184.8 kB / 7.463 MB, free: 2.5 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.192/1.192, allocations: 221.4 MB / 229.3 MB, free: 3.164 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.001003/0.001003, allocations: 97.47 kB / 280.1 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.334/0.334, allocations: 37.07 MB / 368 MB, free: 47.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.364e-06/7.394e-06, allocations: 0 / 434.1 MB, free: 4.934 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1423, allocations: 60.09 MB / 494.2 MB, free: 8.746 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3832/0.5256, allocations: 89.94 MB / 0.5704 GB, free: 9.625 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.5259, allocations: 63.97 kB / 0.5705 GB, free: 9.562 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.006288/0.5322, allocations: 2.137 MB / 0.5726 GB, free: 7.465 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.5323, allocations: 4 kB / 0.5726 GB, free: 7.461 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.000435/0.5327, allocations: 396.6 kB / 0.5729 GB, free: 7.031 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.5328, allocations: 8.031 kB / 0.5729 GB, free: 7.023 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.989e-05/0.5328, allocations: 19.8 kB / 0.573 GB, free: 7.004 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002433/0.5331, allocations: 203 kB / 0.5732 GB, free: 6.766 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.5331, allocations: 8 kB / 0.5732 GB, free: 6.758 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.5331, allocations: 11.98 kB / 0.5732 GB, free: 6.746 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001661/0.5333, allocations: 70.16 kB / 0.5732 GB, free: 6.68 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/0.5335, allocations: 85.67 kB / 0.5733 GB, free: 6.59 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.5335, allocations: 0 / 0.5733 GB, free: 6.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.5335, allocations: 3.984 kB / 0.5733 GB, free: 6.586 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.5335, allocations: 4 kB / 0.5733 GB, free: 6.582 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006301/0.5342, allocations: 417.7 kB / 0.5737 GB, free: 6.137 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001799/0.5344, allocations: 97.47 kB / 0.5738 GB, free: 6.035 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.038e-05/0.5344, allocations: 48.94 kB / 0.5739 GB, free: 5.984 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.5345, allocations: 0 / 0.5739 GB, free: 5.984 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.5345, allocations: 38.56 kB / 0.5739 GB, free: 5.938 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 9.82e-07/0.5345, allocations: 0 / 0.5739 GB, free: 5.938 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002335/0.5347, allocations: 97.66 kB / 0.574 GB, free: 5.836 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/0.5348, allocations: 56 kB / 0.5741 GB, free: 5.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.5349, allocations: 131.9 kB / 0.5742 GB, free: 5.637 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.5349, allocations: 25.7 kB / 0.5742 GB, free: 5.605 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.451e-05/0.535, allocations: 119.7 kB / 0.5743 GB, free: 5.484 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.235e-05/0.535, allocations: 39.39 kB / 0.5744 GB, free: 5.445 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.381e-06/0.535, allocations: 0 / 0.5744 GB, free: 5.445 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.5352, allocations: 330.8 kB / 0.5747 GB, free: 5.113 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.842e-05/0.5352, allocations: 25.69 kB / 0.5747 GB, free: 5.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.918e-05/0.5353, allocations: 33.16 kB / 0.5747 GB, free: 5.059 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.587e-05/0.5353, allocations: 31.98 kB / 0.5748 GB, free: 5.027 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.5354, allocations: 0 / 0.5748 GB, free: 5.027 MB / 394.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001749/0.5355, allocations: 122.1 kB / 0.5749 GB, free: 4.906 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.5356, allocations: 4 kB / 0.5749 GB, free: 4.902 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.5356, allocations: 0 / 0.5749 GB, free: 4.902 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.5356, allocations: 3.984 kB / 0.5749 GB, free: 4.898 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.5357, allocations: 31.94 kB / 0.5749 GB, free: 4.867 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.5358, allocations: 0 / 0.5749 GB, free: 4.867 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.639e-05/0.5358, allocations: 15.83 kB / 0.5749 GB, free: 4.852 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.5359, allocations: 8 kB / 0.5749 GB, free: 4.844 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: prey.population:VARIABLE(min = max(0.0, max(0.0, max(0.0, 0.0))) start = prey.population_start unit = "1" nominal = prey.NominalPopulation ) type: Real predator.population:VARIABLE(min = max(0.0, max(0.0, max(0.0, 0.0))) start = predator.population_start unit = "1" nominal = predator.NominalPopulation ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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.0001645/0.536, allocations: 125.2 kB / 0.5751 GB, free: 4.715 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.299e-05/0.5361, allocations: 7.906 kB / 0.5751 GB, free: 4.707 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.345e-05/0.5361, allocations: 20.48 kB / 0.5751 GB, free: 4.688 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.5361, allocations: 4 kB / 0.5751 GB, free: 4.684 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.5361, allocations: 2.344 kB / 0.5751 GB, free: 4.684 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.5361, allocations: 7.891 kB / 0.5751 GB, free: 4.676 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002105/0.5364, allocations: 198.2 kB / 0.5753 GB, free: 4.445 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.5364, allocations: 0.5 kB / 0.5753 GB, free: 4.445 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001274/0.5365, allocations: 23.98 kB / 0.5753 GB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.5365, allocations: 0 / 0.5753 GB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.5365, allocations: 6.406 kB / 0.5753 GB, free: 4.418 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.5365, allocations: 0 / 0.5753 GB, free: 4.418 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.5365, allocations: 4 kB / 0.5753 GB, free: 4.414 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002619/0.5368, allocations: 235.2 kB / 0.5755 GB, free: 4.168 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.586e-05/0.5369, allocations: 92.95 kB / 0.5756 GB, free: 4.059 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.568e-05/0.5369, allocations: 3.984 kB / 0.5756 GB, free: 4.055 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.537, allocations: 7.906 kB / 0.5756 GB, free: 4.047 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.648e-05/0.5371, allocations: 0 / 0.5756 GB, free: 4.047 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.5371, allocations: 4 kB / 0.5756 GB, free: 4.043 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.154e-05/0.5372, allocations: 115.6 kB / 0.5758 GB, free: 3.934 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002398/0.5374, allocations: 32 kB / 0.5758 GB, free: 3.902 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (predator.population,prey.population) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0001057/0.5375, allocations: 95.23 kB / 0.5759 GB, free: 3.801 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001643/0.5377, allocations: 87.89 kB / 0.576 GB, free: 3.715 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.5377, allocations: 0 / 0.576 GB, free: 3.715 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.852e-05/0.5377, allocations: 35.94 kB / 0.576 GB, free: 3.68 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.538, allocations: 30.14 kB / 0.576 GB, free: 3.652 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005809/0.5386, allocations: 273.4 kB / 0.5763 GB, free: 3.371 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003369/0.5389, allocations: 0.7433 MB / 0.577 GB, free: 2.602 MB / 394.7 MB Notification: Performance of SimCode: time 3.11e-07/0.5389, allocations: 0 / 0.577 GB, free: 2.602 MB / 394.7 MB Notification: Performance of Templates: time 0.004038/0.543, allocations: 1.409 MB / 0.5784 GB, free: 1.238 MB / 394.7 MB make -j1 -f Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.makefile (rm -f Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe ; mkfifo Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe >> ../files/Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.sim & ./Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe 2>&1)