Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.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/SystemDynamics 2.1.2-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-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(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM") translateModel(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 180.9 kB / 7.651 MB, free: 1.422 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.304/1.304, allocations: 221.5 MB / 229.6 MB, free: 7.566 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.0008826/0.0008825, allocations: 99.2 kB / 280.5 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1895/0.1895, allocations: 28.84 MB / 360.1 MB, free: 2.195 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.329e-05/1.331e-05, allocations: 6.094 kB / 423.8 MB, free: 32.19 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1021, allocations: 57.49 MB / 481.3 MB, free: 6.824 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3851/0.4872, allocations: 78.67 MB / 0.5468 GB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.4875, allocations: 64.7 kB / 0.5469 GB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01199/0.4995, allocations: 4.877 MB / 0.5516 GB, free: 10.14 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4996, allocations: 0 / 0.5516 GB, free: 10.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.404e-05/0.4996, allocations: 11.34 kB / 0.5516 GB, free: 10.14 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001003/0.5006, allocations: 0.6762 MB / 0.5523 GB, free: 9.637 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.5006, allocations: 11.42 kB / 0.5523 GB, free: 9.633 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.279e-05/0.5007, allocations: 65.14 kB / 0.5524 GB, free: 9.598 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.5009, allocations: 257 kB / 0.5526 GB, free: 9.348 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.917e-05/0.5009, allocations: 18.25 kB / 0.5526 GB, free: 9.348 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.501, allocations: 30.47 kB / 0.5527 GB, free: 9.344 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004803/0.5015, allocations: 346 kB / 0.553 GB, free: 9.344 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005275/0.502, allocations: 409.8 kB / 0.5534 GB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.502, allocations: 0 / 0.5534 GB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/0.5021, allocations: 0 / 0.5534 GB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.5021, allocations: 15.45 kB / 0.5534 GB, free: 9.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0017/0.5038, allocations: 1.102 MB / 0.5545 GB, free: 8.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.5049, allocations: 0.5389 MB / 0.555 GB, free: 8.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.5051, allocations: 172.7 kB / 0.5552 GB, free: 8.551 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.926e-05/0.5052, allocations: 35.23 kB / 0.5552 GB, free: 8.539 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002992/0.5055, allocations: 260.5 kB / 0.5555 GB, free: 8.426 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.663e-06/0.5055, allocations: 0 / 0.5555 GB, free: 8.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.0005609/0.5061, allocations: 411.7 kB / 0.5558 GB, free: 8.305 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.5061, allocations: 91.19 kB / 0.5559 GB, free: 8.207 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002087/0.5063, allocations: 285.5 kB / 0.5562 GB, free: 8.074 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.5064, allocations: 29.55 kB / 0.5562 GB, free: 8.043 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.5065, allocations: 247.5 kB / 0.5565 GB, free: 7.887 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.816e-05/0.5065, allocations: 128.1 kB / 0.5566 GB, free: 7.793 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.536e-05/0.5066, allocations: 0 / 0.5566 GB, free: 7.793 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.865e-05/0.5066, allocations: 356.1 kB / 0.5569 GB, free: 7.465 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.5068, allocations: 134.5 kB / 0.5571 GB, free: 7.449 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.507, allocations: 170.9 kB / 0.5572 GB, free: 7.398 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001951/0.5072, allocations: 155.3 kB / 0.5574 GB, free: 7.367 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.5072, allocations: 0 / 0.5574 GB, free: 7.367 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004368/0.5076, allocations: 406.7 kB / 0.5578 GB, free: 7.258 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.5076, allocations: 3.875 kB / 0.5578 GB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.5076, allocations: 3.969 kB / 0.5578 GB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.5077, allocations: 0 / 0.5578 GB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000317/0.508, allocations: 80.64 kB / 0.5578 GB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.508, allocations: 7.734 kB / 0.5578 GB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.5082, allocations: 23.31 kB / 0.5579 GB, free: 7.219 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.5082, allocations: 19.12 kB / 0.5579 GB, free: 7.219 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: Rawfiber.level:DISCRETE(start = Rawfiber.x0 fixed = false ) "Discrete state variable" type: Real Eggs.level:DISCRETE(start = Eggs.x0 fixed = false ) "Discrete state variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.Eggs.level,Eggs.level,$PRE.Rawfiber.level,Rawfiber.level) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001201/0.5083, allocations: 113.5 kB / 0.558 GB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.049e-05/0.5084, allocations: 42.66 kB / 0.558 GB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006495/0.509, allocations: 481.8 kB / 0.5585 GB, free: 6.945 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.509, allocations: 3.844 kB / 0.5585 GB, free: 6.945 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.5091, allocations: 3.953 kB / 0.5585 GB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.5091, allocations: 7.828 kB / 0.5585 GB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003489/0.5094, allocations: 443.9 kB / 0.5589 GB, free: 6.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.5094, allocations: 0 / 0.5589 GB, free: 6.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.5097, allocations: 69.41 kB / 0.559 GB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.5097, allocations: 7.844 kB / 0.559 GB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.5097, allocations: 3.844 kB / 0.559 GB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.5098, allocations: 3.938 kB / 0.559 GB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.5098, allocations: 3.844 kB / 0.559 GB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004726/0.5102, allocations: 463.1 kB / 0.5595 GB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.928e-05/0.5103, allocations: 120 kB / 0.5596 GB, free: 6.359 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.714e-05/0.5104, allocations: 7.844 kB / 0.5596 GB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.5105, allocations: 11.7 kB / 0.5596 GB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.692e-05/0.5106, allocations: 31.28 kB / 0.5596 GB, free: 6.336 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-05/0.5106, allocations: 23.08 kB / 0.5596 GB, free: 6.332 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001398/0.5108, allocations: 223.5 kB / 0.5599 GB, free: 6.234 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5108, allocations: 3.812 kB / 0.5599 GB, free: 6.234 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002706/0.511, allocations: 76.97 kB / 0.5599 GB, free: 6.211 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,Eggs.level,Rawfiber.level) * Number of discrete states: 2 (Eggs.level,Rawfiber.level) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001557/0.5112, allocations: 125 kB / 0.5601 GB, free: 6.105 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003253/0.5115, allocations: 316.6 kB / 0.5604 GB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.5115, allocations: 0 / 0.5604 GB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.5117, allocations: 172.5 kB / 0.5605 GB, free: 6.059 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001785/0.5119, allocations: 16.89 kB / 0.5605 GB, free: 6.047 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007501/0.5126, allocations: 0.5939 MB / 0.5611 GB, free: 5.773 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.5129, allocations: 0.8682 MB / 0.562 GB, free: 4.996 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.513, allocations: 29.25 kB / 0.562 GB, free: 4.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.855e-05/0.5131, allocations: 26.03 kB / 0.562 GB, free: 4.977 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5131, allocations: 0 / 0.562 GB, free: 4.977 MB / 362.7 MB Notification: Performance of Templates: time 0.004657/0.5177, allocations: 2.009 MB / 0.564 GB, free: 4.012 MB / 362.7 MB make -j1 -f SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.makefile (rm -f SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe ; mkfifo SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe >> ../files/SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.sim & ./SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1)