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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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 3.2.3+maint.om/package.mo): time 0.001887/0.001887, allocations: 176.2 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.899/1.899, allocations: 205.3 MB / 213.4 MB, free: 13.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009125/0.0009124, allocations: 93.03 kB / 261.4 MB, free: 13.45 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.2456/0.2456, allocations: 28.83 MB / 338.2 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.125e-05/2.127e-05, allocations: 4 kB / 399 MB, free: 56.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1187, allocations: 54.65 MB / 453.7 MB, free: 2.113 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4324/0.5511, allocations: 77.76 MB / 0.519 GB, free: 1.492 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/0.5515, allocations: 65.53 kB / 0.5191 GB, free: 1.461 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01402/0.5656, allocations: 4.853 MB / 0.5238 GB, free: 13.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.637e-06/0.5656, allocations: 3.938 kB / 0.5238 GB, free: 13.24 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.716e-05/0.5657, allocations: 12 kB / 0.5238 GB, free: 13.23 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.001094/0.5668, allocations: 0.6657 MB / 0.5245 GB, free: 12.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.331e-05/0.5668, allocations: 12.03 kB / 0.5245 GB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.567, allocations: 59.25 kB / 0.5245 GB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.5673, allocations: 255.6 kB / 0.5248 GB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.135e-05/0.5673, allocations: 19.94 kB / 0.5248 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.098e-05/0.5674, allocations: 24.55 kB / 0.5248 GB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005855/0.568, allocations: 354 kB / 0.5252 GB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000627/0.5686, allocations: 403.2 kB / 0.5255 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.5686, allocations: 0 / 0.5255 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.164e-05/0.5687, allocations: 0 / 0.5255 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.5687, allocations: 12.66 kB / 0.5255 GB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.5705, allocations: 1.115 MB / 0.5266 GB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001328/0.5719, allocations: 0.5391 MB / 0.5272 GB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/0.5721, allocations: 165.7 kB / 0.5273 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001017/0.5722, allocations: 40.73 kB / 0.5274 GB, free: 9.984 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004108/0.5727, allocations: 268.7 kB / 0.5276 GB, free: 9.703 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.944e-06/0.5727, allocations: 0 / 0.5276 GB, free: 9.703 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.0006853/0.5734, allocations: 409.1 kB / 0.528 GB, free: 9.297 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.5734, allocations: 89.11 kB / 0.5281 GB, free: 9.191 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002989/0.5737, allocations: 274.4 kB / 0.5284 GB, free: 8.922 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.659e-05/0.5738, allocations: 29.7 kB / 0.5284 GB, free: 8.887 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002211/0.574, allocations: 252.2 kB / 0.5286 GB, free: 8.633 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.5742, allocations: 126.1 kB / 0.5287 GB, free: 8.508 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.801e-05/0.5742, allocations: 4 kB / 0.5287 GB, free: 8.504 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.5744, allocations: 350.8 kB / 0.5291 GB, free: 8.152 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.5746, allocations: 135.9 kB / 0.5292 GB, free: 8.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.5749, allocations: 182.2 kB / 0.5294 GB, free: 7.832 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.5752, allocations: 148.9 kB / 0.5295 GB, free: 7.688 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5752, allocations: 0 / 0.5295 GB, free: 7.688 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006169/0.5758, allocations: 414.7 kB / 0.5299 GB, free: 7.277 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.5758, allocations: 4 kB / 0.5299 GB, free: 7.273 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.5759, allocations: 0.75 kB / 0.5299 GB, free: 7.273 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.5759, allocations: 4 kB / 0.5299 GB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000324/0.5762, allocations: 83.92 kB / 0.53 GB, free: 7.188 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.5762, allocations: 0 / 0.53 GB, free: 7.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.5764, allocations: 23.77 kB / 0.53 GB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.257e-05/0.5764, allocations: 20 kB / 0.5301 GB, free: 7.145 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.0001764/0.5766, allocations: 112.9 kB / 0.5302 GB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.497e-05/0.5767, allocations: 43.48 kB / 0.5302 GB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008442/0.5775, allocations: 493.3 kB / 0.5307 GB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.5776, allocations: 8 kB / 0.5307 GB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.5776, allocations: 0 / 0.5307 GB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.5776, allocations: 0 / 0.5307 GB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005076/0.5781, allocations: 437.7 kB / 0.5311 GB, free: 6.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.5781, allocations: 0 / 0.5311 GB, free: 6.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002953/0.5784, allocations: 67.91 kB / 0.5312 GB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.5784, allocations: 7.938 kB / 0.5312 GB, free: 5.945 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.852e-05/0.5785, allocations: 15.94 kB / 0.5312 GB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.5785, allocations: 0 / 0.5312 GB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.5785, allocations: 0 / 0.5312 GB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005883/0.5791, allocations: 466.4 kB / 0.5316 GB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.76e-05/0.5792, allocations: 112.6 kB / 0.5317 GB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.588e-05/0.5792, allocations: 3.953 kB / 0.5317 GB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.5794, allocations: 19.98 kB / 0.5318 GB, free: 5.293 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.836e-05/0.5795, allocations: 19.97 kB / 0.5318 GB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.442e-05/0.5795, allocations: 23.98 kB / 0.5318 GB, free: 5.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002022/0.5797, allocations: 224.6 kB / 0.532 GB, free: 5.035 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5797, allocations: 0 / 0.532 GB, free: 5.035 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003352/0.58, allocations: 87.53 kB / 0.5321 GB, free: 4.949 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.0002259/0.5803, allocations: 115.3 kB / 0.5322 GB, free: 4.828 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004693/0.5808, allocations: 311.9 kB / 0.5325 GB, free: 4.523 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/0.5808, allocations: 4 kB / 0.5325 GB, free: 4.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002275/0.581, allocations: 171.8 kB / 0.5327 GB, free: 4.352 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002405/0.5813, allocations: 18.58 kB / 0.5327 GB, free: 4.332 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.5823, allocations: 0.5897 MB / 0.5333 GB, free: 3.711 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004684/0.5828, allocations: 0.8668 MB / 0.5341 GB, free: 2.812 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.5829, allocations: 34.06 kB / 0.5341 GB, free: 2.777 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.966e-05/0.583, allocations: 31.42 kB / 0.5342 GB, free: 2.75 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.583, allocations: 0 / 0.5342 GB, free: 2.75 MB / 362.7 MB Notification: Performance of Templates: time 0.005617/0.5886, allocations: 2.009 MB / 0.5361 GB, free: 0.7422 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)