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.0007961/0.0007962, allocations: 170.2 kB / 16.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.105/1.105, allocations: 205.4 MB / 222.3 MB, free: 13.6 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.0007133/0.0007133, allocations: 90.3 kB / 270.6 MB, free: 13.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1294/0.1294, allocations: 28.84 MB / 347.7 MB, free: 9.859 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003046/0.0003047, allocations: 16 kB / 413 MB, free: 35.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06976/0.07008, allocations: 54.65 MB / 467.7 MB, free: 12.87 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2268/0.2969, allocations: 78.54 MB / 0.5334 GB, free: 16.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001492/0.2971, allocations: 69.81 kB / 0.5335 GB, free: 16.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01012/0.3073, allocations: 4.9 MB / 0.5383 GB, free: 16.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3073, allocations: 0 / 0.5383 GB, free: 16.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.3073, allocations: 11.56 kB / 0.5383 GB, free: 16.09 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.0007035/0.308, allocations: 0.7172 MB / 0.539 GB, free: 15.53 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.8e-05/0.308, allocations: 7.781 kB / 0.539 GB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.632e-05/0.3081, allocations: 65.97 kB / 0.539 GB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.3082, allocations: 282.1 kB / 0.5393 GB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.623e-05/0.3083, allocations: 33.84 kB / 0.5393 GB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.227e-05/0.3083, allocations: 46.59 kB / 0.5394 GB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005811/0.3089, allocations: 489.4 kB / 0.5399 GB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.3089, allocations: 192 / 0.5399 GB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.965e-05/0.309, allocations: 20.06 kB / 0.5399 GB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.309, allocations: 11.69 kB / 0.5399 GB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005646/0.3095, allocations: 401.9 kB / 0.5403 GB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.3108, allocations: 1.204 MB / 0.5415 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.3118, allocations: 0.5748 MB / 0.542 GB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002608/0.3121, allocations: 195.7 kB / 0.5422 GB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.569e-05/0.3122, allocations: 36.44 kB / 0.5422 GB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003417/0.3125, allocations: 301.5 kB / 0.5425 GB, free: 14.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.623e-06/0.3125, allocations: 0 / 0.5425 GB, free: 14.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.0008655/0.3134, allocations: 0.6103 MB / 0.5431 GB, free: 14.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.419e-05/0.3134, allocations: 84.33 kB / 0.5432 GB, free: 14.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00022/0.3137, allocations: 350.4 kB / 0.5435 GB, free: 14.24 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.3137, allocations: 43.86 kB / 0.5436 GB, free: 14.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.754e-05/0.3138, allocations: 248.3 kB / 0.5438 GB, free: 14.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.181e-05/0.3139, allocations: 140.2 kB / 0.5439 GB, free: 13.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.418e-05/0.3139, allocations: 7.312 kB / 0.544 GB, free: 13.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.138e-05/0.3139, allocations: 350.6 kB / 0.5443 GB, free: 13.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002376/0.3142, allocations: 163.9 kB / 0.5444 GB, free: 13.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000244/0.3144, allocations: 202.2 kB / 0.5446 GB, free: 13.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002072/0.3165, allocations: 0.7056 MB / 0.5453 GB, free: 13.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3165, allocations: 0 / 0.5453 GB, free: 13.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005805/0.3171, allocations: 470.2 kB / 0.5458 GB, free: 13.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.3171, allocations: 11.16 kB / 0.5458 GB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.3172, allocations: 0 / 0.5458 GB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.3172, allocations: 3.875 kB / 0.5458 GB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002641/0.3174, allocations: 72.5 kB / 0.5459 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.3175, allocations: 7.719 kB / 0.5459 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.3176, allocations: 30.23 kB / 0.5459 GB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-05/0.3176, allocations: 18.09 kB / 0.5459 GB, free: 13.27 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.Rawfiber.level,$PRE.Eggs.level,Eggs.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.0001614/0.3178, allocations: 192.2 kB / 0.5461 GB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/0.3178, allocations: 35.03 kB / 0.5461 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007782/0.3186, allocations: 0.5336 MB / 0.5466 GB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3186, allocations: 3.719 kB / 0.5467 GB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3186, allocations: 3.938 kB / 0.5467 GB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.3187, allocations: 3.719 kB / 0.5467 GB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003398/0.319, allocations: 0.5067 MB / 0.5472 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.319, allocations: 0 / 0.5472 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/0.3193, allocations: 65.69 kB / 0.5472 GB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.3193, allocations: 3.875 kB / 0.5472 GB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.3193, allocations: 14.75 kB / 0.5472 GB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3193, allocations: 7.766 kB / 0.5472 GB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3193, allocations: 3.938 kB / 0.5472 GB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005876/0.3199, allocations: 499.3 kB / 0.5477 GB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.768e-05/0.32, allocations: 115.9 kB / 0.5478 GB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.331e-05/0.32, allocations: 11 kB / 0.5478 GB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001328/0.3202, allocations: 15.08 kB / 0.5479 GB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.328e-05/0.3202, allocations: 39.14 kB / 0.5479 GB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/0.3203, allocations: 18.78 kB / 0.5479 GB, free: 12.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001551/0.3204, allocations: 255.7 kB / 0.5482 GB, free: 12.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3204, allocations: 0 / 0.5482 GB, free: 12.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002421/0.3207, allocations: 87.06 kB / 0.5482 GB, free: 12.19 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) * 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.0001115/0.3208, allocations: 125.9 kB / 0.5484 GB, free: 12.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004799/0.3213, allocations: 363.2 kB / 0.5487 GB, free: 12.03 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3213, allocations: 0 / 0.5487 GB, free: 12.03 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002324/0.3215, allocations: 209.9 kB / 0.5489 GB, free: 11.99 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002116/0.3218, allocations: 27.8 kB / 0.5489 GB, free: 11.99 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000909/0.3227, allocations: 0.9828 MB / 0.5499 GB, free: 11.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001896/0.3229, allocations: 0.85 MB / 0.5507 GB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001172/0.323, allocations: 33.72 kB / 0.5508 GB, free: 10.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.627e-05/0.3231, allocations: 34.2 kB / 0.5508 GB, free: 10.59 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3231, allocations: 0 / 0.5508 GB, free: 10.59 MB / 362.7 MB Notification: Performance of Templates: time 0.004211/0.3273, allocations: 2.094 MB / 0.5528 GB, free: 9.59 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)