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.001682/0.001682, allocations: 116.1 kB / 16.37 MB, free: 6.012 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.001869/0.001869, allocations: 191.6 kB / 17.31 MB, free: 5.613 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.414/1.414, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1762/0.1762, allocations: 28.77 MB / 319.9 MB, free: 1.926 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 66.06 kB / 388 MB, free: 40.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08992/0.09118, allocations: 56.44 MB / 444.5 MB, free: 3.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003491/0.09471, allocations: 2.371 MB / 446.8 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009034/0.09563, allocations: 430.7 kB / 447.2 MB, free: 260 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.09578, allocations: 8 kB / 447.3 MB, free: 252 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001296/0.09592, allocations: 47.45 kB / 447.3 MB, free: 204 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.09606, allocations: 27.62 kB / 447.3 MB, free: 176 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004404/0.09651, allocations: 143.8 kB / 447.5 MB, free: 32 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003037/0.09682, allocations: 320.7 kB / 447.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002974/0.09713, allocations: 206.7 kB / 448 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.09726, allocations: 135.4 kB / 448.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001888/0.09746, allocations: 175.1 kB / 448.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.134e-05/0.09751, allocations: 36 kB / 448.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.09764, allocations: 63.91 kB / 448.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.09778, allocations: 127.6 kB / 448.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.09794, allocations: 218.5 kB / 448.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004452/0.09839, allocations: 434.1 kB / 449.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.0984, allocations: 0 / 449.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.09841, allocations: 0 / 449.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.09842, allocations: 3.938 kB / 449.2 MB, free: 14.34 MB / 334.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.001159/0.09959, allocations: 0.7853 MB / 449.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.09963, allocations: 8.031 kB / 449.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.685e-05/0.09972, allocations: 60.19 kB / 450 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.09995, allocations: 274.1 kB / 450.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.917e-05/0.1, allocations: 37.38 kB / 450.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.614e-05/0.1001, allocations: 40.38 kB / 450.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007079/0.1008, allocations: 466.7 kB / 450.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.1008, allocations: 192 / 450.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.396e-05/0.1008, allocations: 23.94 kB / 450.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.1008, allocations: 8 kB / 450.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006475/0.1015, allocations: 379.7 kB / 451.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.1032, allocations: 1.141 MB / 452.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.1043, allocations: 0.5118 MB / 452.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002922/0.1046, allocations: 173.6 kB / 453 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.521e-05/0.1047, allocations: 36.97 kB / 453.1 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004404/0.1051, allocations: 272.5 kB / 453.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.744e-06/0.1051, allocations: 0 / 453.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.001079/0.1062, allocations: 0.5595 MB / 453.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/0.1063, allocations: 85.11 kB / 454 MB, free: 9.289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000411/0.1067, allocations: 353.6 kB / 454.3 MB, free: 8.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.1067, allocations: 33.7 kB / 454.4 MB, free: 8.898 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002212/0.107, allocations: 252.3 kB / 454.6 MB, free: 8.645 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/0.1071, allocations: 134.1 kB / 454.7 MB, free: 8.512 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.325e-05/0.1072, allocations: 57.48 kB / 454.8 MB, free: 8.449 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.1073, allocations: 350.8 kB / 455.1 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002785/0.1076, allocations: 147.9 kB / 455.3 MB, free: 7.953 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002754/0.1079, allocations: 182.2 kB / 455.4 MB, free: 7.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002507/0.1104, allocations: 0.6614 MB / 456.1 MB, free: 7.094 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.1104, allocations: 3.984 kB / 456.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008513/0.1113, allocations: 428.8 kB / 456.5 MB, free: 6.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1113, allocations: 15.97 kB / 456.5 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1113, allocations: 0 / 456.5 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.1114, allocations: 4 kB / 456.6 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003035/0.1117, allocations: 71.89 kB / 456.6 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.1117, allocations: 7.938 kB / 456.6 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.1118, allocations: 27.69 kB / 456.7 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.1119, allocations: 12 kB / 456.7 MB, free: 6.527 MB / 334.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.0002368/0.1121, allocations: 190 kB / 456.9 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.99e-05/0.1122, allocations: 43.53 kB / 456.9 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008097/0.113, allocations: 462.1 kB / 457.3 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.113, allocations: 4 kB / 457.4 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.113, allocations: 3.938 kB / 457.4 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.113, allocations: 8 kB / 457.4 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004839/0.1135, allocations: 0.501 MB / 457.9 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1135, allocations: 0 / 457.9 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002776/0.1138, allocations: 67.91 kB / 457.9 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.1138, allocations: 4 kB / 457.9 MB, free: 5.191 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.1139, allocations: 7.984 kB / 457.9 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.1139, allocations: 7.938 kB / 458 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1139, allocations: 3.938 kB / 458 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008025/0.1147, allocations: 460.9 kB / 458.4 MB, free: 4.699 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.204e-05/0.1148, allocations: 116.6 kB / 458.5 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.1148, allocations: 12 kB / 458.5 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.115, allocations: 11.98 kB / 458.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.242e-05/0.1151, allocations: 31.91 kB / 458.6 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.438e-05/0.1151, allocations: 16 kB / 458.6 MB, free: 4.496 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000288/0.1154, allocations: 255.1 kB / 458.8 MB, free: 4.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1154, allocations: 0 / 458.8 MB, free: 4.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003975/0.1158, allocations: 87.53 kB / 458.9 MB, free: 4.164 MB / 334.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.0001698/0.116, allocations: 119.2 kB / 459 MB, free: 4.039 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006598/0.1167, allocations: 360.2 kB / 459.4 MB, free: 3.688 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1167, allocations: 4.062 kB / 459.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003225/0.117, allocations: 199.8 kB / 459.6 MB, free: 3.488 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002614/0.1173, allocations: 35.23 kB / 459.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.1186, allocations: 0.8229 MB / 460.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005548/0.1192, allocations: 0.8502 MB / 461.3 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001075/0.1193, allocations: 26.3 kB / 461.3 MB, free: 1.695 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.057e-05/0.1194, allocations: 27.42 kB / 461.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1194, allocations: 0 / 461.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of Templates: time 0.006083/0.1255, allocations: 2.401 MB / 463.8 MB, free: 15.27 MB / 350.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 -s gbode -lv LOG_STATS > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1)