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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 99.7 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3982/0.3982, allocations: 28.85 MB / 319.8 MB, free: 6.277 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.0003418, allocations: 8 kB / 387.8 MB, free: 3.543 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3439, allocations: 57.48 MB / 445.3 MB, free: 32.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.002391/0.3463, allocations: 1.935 MB / 447.2 MB, free: 31.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008791/0.3472, allocations: 411.3 kB / 447.6 MB, free: 31.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.3474, allocations: 9.969 kB / 447.6 MB, free: 31.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.082e-05/0.3475, allocations: 25.31 kB / 447.6 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.3476, allocations: 21.02 kB / 447.6 MB, free: 31.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000353/0.348, allocations: 102.7 kB / 447.7 MB, free: 31.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.3482, allocations: 185.2 kB / 447.9 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002331/0.3484, allocations: 160.2 kB / 448.1 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.425e-05/0.3485, allocations: 98.44 kB / 448.2 MB, free: 30.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001461/0.3486, allocations: 133.7 kB / 448.3 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.114e-05/0.3487, allocations: 12 kB / 448.3 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.148e-05/0.3488, allocations: 31.2 kB / 448.4 MB, free: 30.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.403e-05/0.3489, allocations: 101.8 kB / 448.5 MB, free: 30.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.061e-05/0.349, allocations: 90.02 kB / 448.5 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002183/0.3492, allocations: 260.2 kB / 448.8 MB, free: 30.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.3492, allocations: 2.969 kB / 448.8 MB, free: 30.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3492, allocations: 4 kB / 448.8 MB, free: 30.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.3492, allocations: 0 / 448.8 MB, free: 30.53 MB / 350.1 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.0009562/0.3502, allocations: 0.6958 MB / 449.5 MB, free: 29.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.3502, allocations: 12.88 kB / 449.5 MB, free: 29.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.784e-05/0.3503, allocations: 67.55 kB / 449.6 MB, free: 29.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.3505, allocations: 264.2 kB / 449.8 MB, free: 29.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.862e-05/0.3506, allocations: 36.81 kB / 449.9 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.166e-05/0.3506, allocations: 40.66 kB / 449.9 MB, free: 29.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006592/0.3513, allocations: 452.8 kB / 450.4 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.3513, allocations: 10.91 kB / 450.4 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.332e-05/0.3514, allocations: 18.75 kB / 450.4 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.3514, allocations: 10.12 kB / 450.4 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006179/0.352, allocations: 381.1 kB / 450.8 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001367/0.3534, allocations: 1.146 MB / 451.9 MB, free: 28.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/0.3545, allocations: 0.5434 MB / 452.5 MB, free: 28.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.689e-05/0.3546, allocations: 41.12 kB / 452.5 MB, free: 28.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004349/0.355, allocations: 263.8 kB / 452.8 MB, free: 28.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.813e-06/0.3551, allocations: 4 kB / 452.8 MB, free: 28.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.0009849/0.356, allocations: 0.5584 MB / 453.3 MB, free: 28.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.3561, allocations: 80.39 kB / 453.4 MB, free: 28.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002806/0.3564, allocations: 352.3 kB / 453.7 MB, free: 27.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.3564, allocations: 36.2 kB / 453.8 MB, free: 27.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.3566, allocations: 248.4 kB / 454 MB, free: 27.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.169e-05/0.3567, allocations: 136.8 kB / 454.1 MB, free: 27.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.303e-05/0.3567, allocations: 4 kB / 454.2 MB, free: 27.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.547e-05/0.3568, allocations: 351.7 kB / 454.5 MB, free: 27.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002343/0.357, allocations: 139.4 kB / 454.6 MB, free: 27.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002437/0.3573, allocations: 196.2 kB / 454.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002606/0.3575, allocations: 157.7 kB / 455 MB, free: 27.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3575, allocations: 0 / 455 MB, free: 27.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005937/0.3581, allocations: 437.9 kB / 455.4 MB, free: 26.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.3582, allocations: 8.625 kB / 455.4 MB, free: 26.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.3582, allocations: 6.578 kB / 455.4 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.3582, allocations: 0 / 455.4 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003099/0.3585, allocations: 76.39 kB / 455.5 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.3585, allocations: 2.625 kB / 455.5 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.3587, allocations: 29.52 kB / 455.5 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.3587, allocations: 11.88 kB / 455.5 MB, free: 26.86 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: Rawfiber.level:DISCRETE(start = Rawfiber.x0 fixed = true ) "Discrete state variable" type: Real Eggs.level:DISCRETE(start = Eggs.x0 fixed = true ) "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 () * Number of clocked 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.0002238/0.359, allocations: 187.2 kB / 455.7 MB, free: 26.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4e-05/0.359, allocations: 37.91 kB / 455.8 MB, free: 26.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007384/0.3597, allocations: 467.5 kB / 456.2 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3598, allocations: 13.14 kB / 456.2 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3598, allocations: 0 / 456.2 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.3598, allocations: 3.094 kB / 456.2 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004382/0.3602, allocations: 0.4951 MB / 456.7 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3602, allocations: 0 / 456.7 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002668/0.3605, allocations: 63.03 kB / 456.8 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.3605, allocations: 6.906 kB / 456.8 MB, free: 26.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.3606, allocations: 14.27 kB / 456.8 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.3606, allocations: 3.938 kB / 456.8 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.3606, allocations: 6.672 kB / 456.8 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006745/0.3613, allocations: 471 kB / 457.3 MB, free: 25.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.15e-05/0.3613, allocations: 115.6 kB / 457.4 MB, free: 25.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.715e-05/0.3614, allocations: 16.2 kB / 457.4 MB, free: 25.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.3615, allocations: 13.2 kB / 457.4 MB, free: 25.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.892e-05/0.3616, allocations: 30.67 kB / 457.4 MB, free: 25.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-05/0.3617, allocations: 11.75 kB / 457.5 MB, free: 25.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002255/0.3619, allocations: 247.7 kB / 457.7 MB, free: 25.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3619, allocations: 5.156 kB / 457.7 MB, free: 25.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003153/0.3622, allocations: 88.09 kB / 457.8 MB, free: 25.66 MB / 350.1 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) * Number of clocked states: 0 () * 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.000167/0.3624, allocations: 117.8 kB / 457.9 MB, free: 25.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006588/0.3631, allocations: 372.6 kB / 458.3 MB, free: 25.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3631, allocations: 0 / 458.3 MB, free: 25.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003632/0.3634, allocations: 200.5 kB / 458.5 MB, free: 25.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.3637, allocations: 18.66 kB / 458.5 MB, free: 25.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.3651, allocations: 0.9851 MB / 459.5 MB, free: 24.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.3654, allocations: 0.8595 MB / 460.3 MB, free: 24.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001249/0.3655, allocations: 31.44 kB / 460.4 MB, free: 24.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.693e-05/0.3656, allocations: 28.59 kB / 460.4 MB, free: 24.07 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3656, allocations: 4 kB / 460.4 MB, free: 24.06 MB / 350.1 MB Notification: Performance of Templates: time 0.005465/0.3711, allocations: 2.091 MB / 462.5 MB, free: 23.87 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: