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.004026/0.004026, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.142/1.142, allocations: 223.2 MB / 239 MB, free: 1.797 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.000817/0.000817, allocations: 103.1 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1305/0.1305, allocations: 28.84 MB / 370.2 MB, free: 13.93 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002639/0.0002639, allocations: 8 kB / 438.1 MB, free: 70.8 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0731/0.07337, allocations: 57.47 MB / 495.6 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2441/0.3175, allocations: 79.41 MB / 0.5615 GB, free: 11.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001603/0.3177, allocations: 65.28 kB / 0.5616 GB, free: 11.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01004/0.3277, allocations: 4.923 MB / 0.5664 GB, free: 7.906 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3278, allocations: 0 / 0.5664 GB, free: 7.906 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.3278, allocations: 12 kB / 0.5664 GB, free: 7.895 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.0007263/0.3285, allocations: 0.7204 MB / 0.5671 GB, free: 7.148 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.3286, allocations: 8.031 kB / 0.5671 GB, free: 7.141 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.808e-05/0.3286, allocations: 63.2 kB / 0.5672 GB, free: 7.078 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.3288, allocations: 271.1 kB / 0.5674 GB, free: 6.785 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.3288, allocations: 33.5 kB / 0.5675 GB, free: 6.762 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.215e-05/0.3289, allocations: 44.25 kB / 0.5675 GB, free: 6.734 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005788/0.3295, allocations: 476.8 kB / 0.568 GB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.3295, allocations: 0 / 0.568 GB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/0.3295, allocations: 18.44 kB / 0.568 GB, free: 6.383 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.3295, allocations: 15.98 kB / 0.568 GB, free: 6.367 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005632/0.3301, allocations: 416.2 kB / 0.5684 GB, free: 6.059 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.3314, allocations: 1.183 MB / 0.5695 GB, free: 5.039 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.3325, allocations: 0.5949 MB / 0.5701 GB, free: 4.555 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.46e-05/0.3326, allocations: 40.66 kB / 0.5702 GB, free: 4.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003479/0.333, allocations: 289.6 kB / 0.5704 GB, free: 4.281 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.463e-06/0.333, allocations: 7.875 kB / 0.5705 GB, free: 4.273 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.0008705/0.3338, allocations: 0.6034 MB / 0.571 GB, free: 3.805 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.3339, allocations: 85.05 kB / 0.5711 GB, free: 3.703 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000195/0.3341, allocations: 308.5 kB / 0.5714 GB, free: 3.445 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.3341, allocations: 36.64 kB / 0.5715 GB, free: 3.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.03e-05/0.3342, allocations: 260 kB / 0.5717 GB, free: 3.219 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.241e-05/0.3343, allocations: 131.5 kB / 0.5718 GB, free: 3.109 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.555e-05/0.3343, allocations: 11.69 kB / 0.5718 GB, free: 3.105 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.207e-05/0.3344, allocations: 347.7 kB / 0.5722 GB, free: 2.773 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002425/0.3346, allocations: 155.6 kB / 0.5723 GB, free: 2.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/0.3349, allocations: 208.8 kB / 0.5725 GB, free: 2.496 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.3351, allocations: 178.1 kB / 0.5727 GB, free: 2.375 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3351, allocations: 0 / 0.5727 GB, free: 2.375 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005816/0.3357, allocations: 471.1 kB / 0.5731 GB, free: 2.016 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.3357, allocations: 4 kB / 0.5731 GB, free: 2.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.3357, allocations: 0 / 0.5731 GB, free: 2.012 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.3358, allocations: 7.953 kB / 0.5731 GB, free: 2.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002739/0.336, allocations: 75.7 kB / 0.5732 GB, free: 1.934 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.3361, allocations: 4 kB / 0.5732 GB, free: 1.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.3362, allocations: 23.58 kB / 0.5732 GB, free: 1.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/0.3362, allocations: 27.47 kB / 0.5733 GB, free: 1.887 MB / 362.7 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.0001638/0.3364, allocations: 181.9 kB / 0.5734 GB, free: 1.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.934e-05/0.3365, allocations: 43.44 kB / 0.5735 GB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007818/0.3372, allocations: 0.5361 MB / 0.574 GB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.3373, allocations: 7.953 kB / 0.574 GB, free: 1.273 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.3373, allocations: 0 / 0.574 GB, free: 1.273 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.3373, allocations: 4.266 kB / 0.574 GB, free: 1.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003816/0.3377, allocations: 0.5068 MB / 0.5745 GB, free: 0.8242 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3377, allocations: 0 / 0.5745 GB, free: 0.8242 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002583/0.3379, allocations: 75.52 kB / 0.5746 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.3379, allocations: 11.98 kB / 0.5746 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.338, allocations: 7.5 kB / 0.5746 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.338, allocations: 4 kB / 0.5746 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.338, allocations: 3.953 kB / 0.5746 GB, free: 0.7305 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006172/0.3386, allocations: 0.499 MB / 0.5751 GB, free: 320 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.932e-05/0.3387, allocations: 112.6 kB / 0.5752 GB, free: 188 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.353e-05/0.3387, allocations: 11.06 kB / 0.5752 GB, free: 184 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.3389, allocations: 15.75 kB / 0.5752 GB, free: 172 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.277e-05/0.3389, allocations: 31.34 kB / 0.5753 GB, free: 144 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/0.339, allocations: 28.67 kB / 0.5753 GB, free: 120 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000183/0.3392, allocations: 249.1 kB / 0.5755 GB, free: 15.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3392, allocations: 8 kB / 0.5755 GB, free: 15.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002674/0.3394, allocations: 93.53 kB / 0.5756 GB, free: 15.83 MB / 378.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) * 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.0001369/0.3396, allocations: 121.1 kB / 0.5757 GB, free: 15.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000526/0.3401, allocations: 361.3 kB / 0.5761 GB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3401, allocations: 4.062 kB / 0.5761 GB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002666/0.3404, allocations: 204.4 kB / 0.5763 GB, free: 15.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.3406, allocations: 20.06 kB / 0.5763 GB, free: 15.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.3417, allocations: 0.988 MB / 0.5773 GB, free: 14.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.342, allocations: 0.8664 MB / 0.5781 GB, free: 13.44 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000117/0.3421, allocations: 22.3 kB / 0.5781 GB, free: 13.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.515e-05/0.3422, allocations: 38.48 kB / 0.5782 GB, free: 13.38 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3422, allocations: 0 / 0.5782 GB, free: 13.38 MB / 378.7 MB Notification: Performance of Templates: time 0.00462/0.3468, allocations: 2.079 MB / 0.5802 GB, free: 11.32 MB / 378.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)