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.005615/0.00562, allocations: 104.7 kB / 15.74 MB, free: 6.035 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.001304/0.001304, allocations: 200.3 kB / 16.68 MB, free: 5.953 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.3/1.3, allocations: 222.9 MB / 240.4 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.1671/0.1671, allocations: 28.78 MB / 319.3 MB, free: 1.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 63.91 kB / 444.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09987/0.101, allocations: 56.42 MB / 0.4889 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003031/0.1041, allocations: 2.374 MB / 0.4913 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008353/0.1049, allocations: 434.7 kB / 0.4917 GB, free: 7.289 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.1051, allocations: 7.938 kB / 0.4917 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001182/0.1052, allocations: 47.45 kB / 0.4917 GB, free: 7.234 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.1053, allocations: 27.62 kB / 0.4918 GB, free: 7.207 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004016/0.1057, allocations: 143.8 kB / 0.4919 GB, free: 7.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002762/0.106, allocations: 324.6 kB / 0.4922 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.1063, allocations: 206.7 kB / 0.4924 GB, free: 6.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.1065, allocations: 131.4 kB / 0.4925 GB, free: 6.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002143/0.1067, allocations: 179.1 kB / 0.4927 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.817e-05/0.1067, allocations: 36 kB / 0.4927 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001365/0.1069, allocations: 63.91 kB / 0.4928 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.1071, allocations: 131.6 kB / 0.4929 GB, free: 6.016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001768/0.1072, allocations: 206.6 kB / 0.4931 GB, free: 5.812 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004455/0.1077, allocations: 438.1 kB / 0.4935 GB, free: 5.383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1077, allocations: 0 / 0.4935 GB, free: 5.383 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1077, allocations: 0 / 0.4935 GB, free: 5.383 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.1077, allocations: 4 kB / 0.4935 GB, free: 5.379 MB / 382.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.001276/0.109, allocations: 0.7775 MB / 0.4943 GB, free: 4.547 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.1091, allocations: 12.03 kB / 0.4943 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.973e-05/0.1092, allocations: 64.19 kB / 0.4944 GB, free: 4.473 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.1094, allocations: 278.1 kB / 0.4946 GB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.082e-05/0.1095, allocations: 33.31 kB / 0.4947 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.069e-05/0.1095, allocations: 48.31 kB / 0.4947 GB, free: 4.082 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008358/0.1104, allocations: 462.7 kB / 0.4952 GB, free: 3.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.1104, allocations: 192 / 0.4952 GB, free: 3.617 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.663e-05/0.1104, allocations: 19.94 kB / 0.4952 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.1105, allocations: 16 kB / 0.4952 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006407/0.1111, allocations: 375.7 kB / 0.4955 GB, free: 3.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/0.1126, allocations: 1.137 MB / 0.4967 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.1137, allocations: 0.517 MB / 0.4972 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002758/0.1139, allocations: 177.6 kB / 0.4973 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.001e-05/0.114, allocations: 36.97 kB / 0.4974 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004212/0.1144, allocations: 264.8 kB / 0.4976 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.673e-06/0.1144, allocations: 4 kB / 0.4976 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.0009494/0.1154, allocations: 0.5555 MB / 0.4982 GB, free: 436 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.1155, allocations: 85.11 kB / 0.4982 GB, free: 332 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003131/0.1158, allocations: 349.7 kB / 0.4986 GB, free: 15.97 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.943e-05/0.1158, allocations: 41.7 kB / 0.4986 GB, free: 15.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.116, allocations: 252.2 kB / 0.4989 GB, free: 15.67 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.726e-05/0.1161, allocations: 130 kB / 0.499 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.159e-05/0.1162, allocations: 61.69 kB / 0.499 GB, free: 15.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1163, allocations: 346.8 kB / 0.4994 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002598/0.1166, allocations: 143.9 kB / 0.4995 GB, free: 14.99 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.1168, allocations: 186.2 kB / 0.4997 GB, free: 14.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002457/0.1193, allocations: 0.6648 MB / 0.5003 GB, free: 14.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.1193, allocations: 3.938 kB / 0.5003 GB, free: 14.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006386/0.12, allocations: 428.8 kB / 0.5008 GB, free: 13.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.12, allocations: 4 kB / 0.5008 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.12, allocations: 4 kB / 0.5008 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.12, allocations: 3.938 kB / 0.5008 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002985/0.1203, allocations: 75.94 kB / 0.5008 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.1203, allocations: 7.922 kB / 0.5008 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00015/0.1205, allocations: 23.78 kB / 0.5009 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.1205, allocations: 12 kB / 0.5009 GB, free: 13.57 MB / 398.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.0002198/0.1207, allocations: 194.4 kB / 0.5011 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.72e-05/0.1208, allocations: 39.53 kB / 0.5011 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000749/0.1216, allocations: 466.3 kB / 0.5015 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.1216, allocations: 4 kB / 0.5015 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.1216, allocations: 3.938 kB / 0.5016 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.1216, allocations: 0 / 0.5016 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004816/0.1221, allocations: 0.5047 MB / 0.502 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.1221, allocations: 0 / 0.502 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002846/0.1224, allocations: 71.91 kB / 0.5021 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1224, allocations: 288 / 0.5021 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.1224, allocations: 8 kB / 0.5021 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.1224, allocations: 3.984 kB / 0.5021 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.1224, allocations: 7.938 kB / 0.5021 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006637/0.1231, allocations: 461.1 kB / 0.5026 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.962e-05/0.1232, allocations: 116.6 kB / 0.5027 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.579e-05/0.1232, allocations: 16 kB / 0.5027 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.1234, allocations: 8 kB / 0.5027 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.692e-05/0.1235, allocations: 31.89 kB / 0.5027 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.1235, allocations: 12 kB / 0.5027 GB, free: 11.54 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002176/0.1237, allocations: 255.1 kB / 0.503 GB, free: 11.29 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1237, allocations: 4 kB / 0.503 GB, free: 11.29 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002905/0.124, allocations: 87.53 kB / 0.5031 GB, free: 11.2 MB / 398.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.0001429/0.1242, allocations: 119.2 kB / 0.5032 GB, free: 11.08 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006241/0.1248, allocations: 368.1 kB / 0.5035 GB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1248, allocations: 0 / 0.5035 GB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.1251, allocations: 203.5 kB / 0.5037 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002353/0.1254, allocations: 35.97 kB / 0.5038 GB, free: 10.49 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.1266, allocations: 0.819 MB / 0.5046 GB, free: 9.641 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.127, allocations: 0.8541 MB / 0.5054 GB, free: 8.758 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.1271, allocations: 30.28 kB / 0.5054 GB, free: 8.727 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.477e-05/0.1272, allocations: 31.42 kB / 0.5055 GB, free: 8.695 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1272, allocations: 0 / 0.5055 GB, free: 8.695 MB / 398.1 MB Notification: Performance of Templates: time 0.005873/0.133, allocations: 2.433 MB / 0.5078 GB, free: 6.262 MB / 398.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)