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.005213/0.005213, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001112/0.001112, allocations: 198.4 kB / 16.67 MB, free: 5.934 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.202/0.202, allocations: 28.78 MB / 319.3 MB, free: 1.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 63.89 kB / 444.3 MB, free: 2.566 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.116, allocations: 56.41 MB / 0.4889 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003563/0.1196, allocations: 2.374 MB / 0.4913 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.1208, allocations: 438.6 kB / 0.4917 GB, free: 7.285 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002486/0.1211, allocations: 4 kB / 0.4917 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001818/0.1213, allocations: 47.45 kB / 0.4917 GB, free: 7.234 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001984/0.1215, allocations: 35.61 kB / 0.4918 GB, free: 7.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005513/0.1221, allocations: 147.7 kB / 0.4919 GB, free: 7.055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004142/0.1225, allocations: 316.7 kB / 0.4922 GB, free: 6.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003255/0.1228, allocations: 198.7 kB / 0.4924 GB, free: 6.551 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.123, allocations: 135.4 kB / 0.4925 GB, free: 6.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002329/0.1232, allocations: 187 kB / 0.4927 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.381e-05/0.1233, allocations: 32 kB / 0.4927 GB, free: 6.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001465/0.1235, allocations: 59.97 kB / 0.4928 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.1236, allocations: 127.6 kB / 0.4929 GB, free: 6.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.1238, allocations: 210.5 kB / 0.4931 GB, free: 5.812 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005209/0.1244, allocations: 437.6 kB / 0.4935 GB, free: 5.383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1244, allocations: 0 / 0.4935 GB, free: 5.383 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1244, allocations: 0 / 0.4935 GB, free: 5.383 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.1244, allocations: 0 / 0.4935 GB, free: 5.383 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.001262/0.1257, allocations: 0.8004 MB / 0.4943 GB, free: 4.527 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.1257, allocations: 8.031 kB / 0.4943 GB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.546e-05/0.1258, allocations: 64.56 kB / 0.4944 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.126, allocations: 286.3 kB / 0.4947 GB, free: 4.137 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.111e-05/0.1261, allocations: 37.38 kB / 0.4947 GB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.198e-05/0.1261, allocations: 44.31 kB / 0.4947 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007314/0.1269, allocations: 458.7 kB / 0.4952 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.1269, allocations: 4.125 kB / 0.4952 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.651e-05/0.1269, allocations: 23.94 kB / 0.4952 GB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.127, allocations: 12 kB / 0.4952 GB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006549/0.1276, allocations: 375.7 kB / 0.4956 GB, free: 3.191 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001506/0.1291, allocations: 1.149 MB / 0.4967 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.1303, allocations: 0.5115 MB / 0.4972 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002944/0.1306, allocations: 173.6 kB / 0.4974 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.035e-05/0.1307, allocations: 36.98 kB / 0.4974 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005272/0.1312, allocations: 264.8 kB / 0.4976 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.713e-06/0.1312, allocations: 0 / 0.4976 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001013/0.1323, allocations: 0.5596 MB / 0.4982 GB, free: 412 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.173e-05/0.1323, allocations: 89.11 kB / 0.4983 GB, free: 304 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003261/0.1327, allocations: 349.6 kB / 0.4986 GB, free: 15.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.1327, allocations: 33.7 kB / 0.4986 GB, free: 15.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001597/0.1329, allocations: 264.6 kB / 0.4989 GB, free: 15.64 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.133, allocations: 142.8 kB / 0.499 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.92e-05/0.1331, allocations: 53.7 kB / 0.4991 GB, free: 15.44 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1332, allocations: 350.8 kB / 0.4994 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002484/0.1335, allocations: 143.9 kB / 0.4996 GB, free: 14.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002766/0.1338, allocations: 178.3 kB / 0.4997 GB, free: 14.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002544/0.1363, allocations: 0.6725 MB / 0.5004 GB, free: 14.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.1363, allocations: 4 kB / 0.5004 GB, free: 14.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006983/0.137, allocations: 425.1 kB / 0.5008 GB, free: 13.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.1371, allocations: 4 kB / 0.5008 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1371, allocations: 4 kB / 0.5008 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.1371, allocations: 4 kB / 0.5008 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003012/0.1374, allocations: 75.89 kB / 0.5009 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.848e-05/0.1374, allocations: 7.969 kB / 0.5009 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.1376, allocations: 31.77 kB / 0.5009 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.302e-05/0.1376, allocations: 12 kB / 0.5009 GB, free: 13.52 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.0002409/0.1379, allocations: 182.8 kB / 0.5011 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.216e-05/0.1379, allocations: 47.7 kB / 0.5011 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007916/0.1387, allocations: 462.3 kB / 0.5016 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1388, allocations: 8 kB / 0.5016 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.1388, allocations: 3.938 kB / 0.5016 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.1388, allocations: 3.984 kB / 0.5016 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004994/0.1393, allocations: 0.5047 MB / 0.5021 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.1393, allocations: 3.938 kB / 0.5021 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002884/0.1396, allocations: 63.91 kB / 0.5022 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.1396, allocations: 8 kB / 0.5022 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.1396, allocations: 11.98 kB / 0.5022 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.1396, allocations: 0 / 0.5022 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1397, allocations: 3.938 kB / 0.5022 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007123/0.1404, allocations: 461.3 kB / 0.5026 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.918e-05/0.1405, allocations: 120.8 kB / 0.5027 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.796e-05/0.1405, allocations: 12 kB / 0.5027 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.1407, allocations: 11.98 kB / 0.5028 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.988e-05/0.1407, allocations: 27.91 kB / 0.5028 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-05/0.1408, allocations: 15.98 kB / 0.5028 GB, free: 11.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002395/0.141, allocations: 251.2 kB / 0.503 GB, free: 11.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.141, allocations: 0 / 0.503 GB, free: 11.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003113/0.1414, allocations: 91.67 kB / 0.5031 GB, free: 11.16 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.0001745/0.1415, allocations: 119.2 kB / 0.5032 GB, free: 11.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006399/0.1422, allocations: 368.1 kB / 0.5036 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1422, allocations: 0 / 0.5036 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003257/0.1425, allocations: 195.5 kB / 0.5038 GB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.1428, allocations: 33.5 kB / 0.5038 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.1441, allocations: 0.8454 MB / 0.5046 GB, free: 9.578 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004714/0.1446, allocations: 0.8541 MB / 0.5055 GB, free: 8.695 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001098/0.1447, allocations: 34.28 kB / 0.5055 GB, free: 8.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.202e-05/0.1448, allocations: 23.44 kB / 0.5055 GB, free: 8.637 MB / 398.1 MB Notification: Performance of SimCode: time 1.863e-06/0.1448, allocations: 0 / 0.5055 GB, free: 8.637 MB / 398.1 MB Notification: Performance of Templates: time 0.00644/0.1512, allocations: 2.441 MB / 0.5079 GB, free: 6.195 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)