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.0009778/0.0009779, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001148/0.001148, allocations: 190.7 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 239.9 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2926/0.2926, allocations: 28.8 MB / 318.9 MB, free: 5.844 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001065/0.001066, allocations: 63.91 kB / 386.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3773/0.3783, allocations: 56.42 MB / 442.5 MB, free: 39.64 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003028/0.3814, allocations: 2.408 MB / 444.9 MB, free: 38.49 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007625/0.3822, allocations: 422.1 kB / 445.4 MB, free: 38.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001242/0.3823, allocations: 5.531 kB / 445.4 MB, free: 38.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001254/0.3825, allocations: 29.06 kB / 445.4 MB, free: 38.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.3826, allocations: 13.47 kB / 445.4 MB, free: 38.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.383, allocations: 127.7 kB / 445.5 MB, free: 38.31 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002348/0.3833, allocations: 321 kB / 445.8 MB, free: 38.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002624/0.3835, allocations: 199.3 kB / 446 MB, free: 38.24 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.3836, allocations: 130.4 kB / 446.2 MB, free: 38.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001814/0.3838, allocations: 186.3 kB / 446.3 MB, free: 38.15 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.003e-05/0.3839, allocations: 35.41 kB / 446.4 MB, free: 38.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001127/0.384, allocations: 62.75 kB / 446.4 MB, free: 38.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.3841, allocations: 133.9 kB / 446.6 MB, free: 38.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.3843, allocations: 207.5 kB / 446.8 MB, free: 38.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003123/0.3846, allocations: 404.4 kB / 447.2 MB, free: 37.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3846, allocations: 0 / 447.2 MB, free: 37.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3846, allocations: 0 / 447.2 MB, free: 37.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.3846, allocations: 4 kB / 447.2 MB, free: 37.92 MB / 366.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.001073/0.3857, allocations: 0.7779 MB / 448 MB, free: 37.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3857, allocations: 8.656 kB / 448 MB, free: 37.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.388e-05/0.3858, allocations: 65.25 kB / 448 MB, free: 37.35 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.386, allocations: 280.2 kB / 448.3 MB, free: 37.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.595e-05/0.3861, allocations: 32.81 kB / 448.3 MB, free: 37.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.866e-05/0.3862, allocations: 45.03 kB / 448.4 MB, free: 37.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000688/0.3868, allocations: 472.8 kB / 448.8 MB, free: 36.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.3869, allocations: 192 / 448.8 MB, free: 36.92 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.477e-05/0.3869, allocations: 22.94 kB / 448.9 MB, free: 36.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.3869, allocations: 15.38 kB / 448.9 MB, free: 36.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005832/0.3875, allocations: 369.3 kB / 449.2 MB, free: 36.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.3889, allocations: 1.153 MB / 450.4 MB, free: 36.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.3899, allocations: 0.5149 MB / 450.9 MB, free: 35.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002625/0.3902, allocations: 173.7 kB / 451.1 MB, free: 35.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-05/0.3903, allocations: 40.33 kB / 451.1 MB, free: 35.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005308/0.3908, allocations: 267.3 kB / 451.4 MB, free: 35.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 1.453e-06/0.3909, allocations: 2.719 kB / 451.4 MB, free: 35.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=41): time 0.0009794/0.3918, allocations: 0.5581 MB / 451.9 MB, free: 35.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.3919, allocations: 82.83 kB / 452 MB, free: 35.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002894/0.3922, allocations: 360.6 kB / 452.4 MB, free: 35.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.3922, allocations: 32.7 kB / 452.4 MB, free: 35.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.3923, allocations: 253.8 kB / 452.6 MB, free: 35.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.123e-05/0.3924, allocations: 129.4 kB / 452.8 MB, free: 34.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.884e-05/0.3925, allocations: 66.94 kB / 452.8 MB, free: 34.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.037e-05/0.3926, allocations: 351.2 kB / 453.2 MB, free: 34.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002215/0.3928, allocations: 139.7 kB / 453.3 MB, free: 34.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002419/0.3931, allocations: 192.2 kB / 453.5 MB, free: 34.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002337/0.3954, allocations: 0.6678 MB / 454.2 MB, free: 34.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3955, allocations: 0 / 454.2 MB, free: 34.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005942/0.3961, allocations: 432.5 kB / 454.6 MB, free: 34.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.3961, allocations: 11.25 kB / 454.6 MB, free: 34.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.3961, allocations: 0 / 454.6 MB, free: 34.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.3961, allocations: 2.5 kB / 454.6 MB, free: 34.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002755/0.3964, allocations: 68.75 kB / 454.7 MB, free: 34.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.517e-06/0.3964, allocations: 9.953 kB / 454.7 MB, free: 34.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001424/0.3966, allocations: 27.16 kB / 454.7 MB, free: 34.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.3966, allocations: 19.56 kB / 454.7 MB, free: 34.08 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: Eggs.level:DISCRETE(start = Eggs.x0 fixed = true ) "Discrete state variable" type: Real Rawfiber.level:DISCRETE(start = Rawfiber.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,$PRE.Rawfiber.level,Rawfiber.level,Eggs.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002786/0.3969, allocations: 184.4 kB / 454.9 MB, free: 33.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.308e-05/0.3969, allocations: 37.88 kB / 454.9 MB, free: 33.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007565/0.3977, allocations: 461.3 kB / 455.4 MB, free: 33.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.3977, allocations: 2.688 kB / 455.4 MB, free: 33.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/0.3977, allocations: 6.5 kB / 455.4 MB, free: 33.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.3978, allocations: 3.375 kB / 455.4 MB, free: 33.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004612/0.3982, allocations: 0.4984 MB / 455.9 MB, free: 33.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.3982, allocations: 2.594 kB / 455.9 MB, free: 33.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002594/0.3985, allocations: 66.89 kB / 456 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.3985, allocations: 2.625 kB / 456 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.3985, allocations: 14.47 kB / 456 MB, free: 33.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.3985, allocations: 6.656 kB / 456 MB, free: 33.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.3986, allocations: 7.922 kB / 456 MB, free: 33.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006816/0.3992, allocations: 453.6 kB / 456.5 MB, free: 33.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.972e-05/0.3993, allocations: 115.4 kB / 456.6 MB, free: 33.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.694e-05/0.3994, allocations: 13.16 kB / 456.6 MB, free: 33.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.3995, allocations: 16.53 kB / 456.6 MB, free: 33.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.919e-05/0.3996, allocations: 30.64 kB / 456.6 MB, free: 33.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.3997, allocations: 15.11 kB / 456.6 MB, free: 33.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002122/0.3999, allocations: 250.1 kB / 456.9 MB, free: 32.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.382e-06/0.3999, allocations: 0 / 456.9 MB, free: 32.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003486/0.4002, allocations: 96.81 kB / 457 MB, free: 32.9 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001904/0.4004, allocations: 113.1 kB / 457.1 MB, free: 32.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007216/0.4012, allocations: 391.2 kB / 457.5 MB, free: 32.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4012, allocations: 0 / 457.5 MB, free: 32.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002812/0.4015, allocations: 196.2 kB / 457.7 MB, free: 32.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002775/0.4017, allocations: 23.41 kB / 457.7 MB, free: 32.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.403, allocations: 1.041 MB / 458.7 MB, free: 31.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.4033, allocations: 0.8503 MB / 459.6 MB, free: 31.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000122/0.4034, allocations: 31.03 kB / 459.6 MB, free: 31.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.711e-05/0.4035, allocations: 28.09 kB / 459.6 MB, free: 31.23 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4035, allocations: 0 / 459.6 MB, free: 31.23 MB / 366.1 MB Notification: Performance of Templates: time 0.005505/0.409, allocations: 2.352 MB / 462 MB, free: 31.02 MB / 366.1 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)