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.005088/0.005088, allocations: 99.08 kB / 15.73 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.001184/0.001184, allocations: 188.4 kB / 16.67 MB, free: 5.926 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.235/1.235, allocations: 222.9 MB / 240.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1577/0.1577, allocations: 28.78 MB / 319.3 MB, free: 1.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 55.91 kB / 444.3 MB, free: 2.594 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09187/0.093, allocations: 56.42 MB / 0.489 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003121/0.09616, allocations: 2.37 MB / 0.4913 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000943/0.09712, allocations: 434.6 kB / 0.4917 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001901/0.09733, allocations: 8 kB / 0.4917 GB, free: 7.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.09748, allocations: 43.45 kB / 0.4917 GB, free: 7.258 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001749/0.09769, allocations: 31.62 kB / 0.4918 GB, free: 7.227 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004506/0.09815, allocations: 147.7 kB / 0.4919 GB, free: 7.082 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000313/0.09848, allocations: 316.7 kB / 0.4922 GB, free: 6.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002716/0.09876, allocations: 202.7 kB / 0.4924 GB, free: 6.574 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.09888, allocations: 139.4 kB / 0.4925 GB, free: 6.438 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.09906, allocations: 175.1 kB / 0.4927 GB, free: 6.266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.986e-05/0.09912, allocations: 36 kB / 0.4927 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.09925, allocations: 63.97 kB / 0.4928 GB, free: 6.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.09937, allocations: 131.6 kB / 0.4929 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.09951, allocations: 206.6 kB / 0.4931 GB, free: 5.836 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004046/0.09992, allocations: 433.6 kB / 0.4935 GB, free: 5.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.09993, allocations: 0 / 0.4935 GB, free: 5.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.09994, allocations: 0 / 0.4935 GB, free: 5.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.09996, allocations: 7.938 kB / 0.4935 GB, free: 5.402 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.001043/0.101, allocations: 0.8004 MB / 0.4943 GB, free: 4.547 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.962e-05/0.101, allocations: 8.031 kB / 0.4943 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.967e-05/0.1011, allocations: 64.55 kB / 0.4944 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001808/0.1013, allocations: 286.3 kB / 0.4947 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.161e-05/0.1014, allocations: 33.38 kB / 0.4947 GB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.1014, allocations: 48.31 kB / 0.4947 GB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006701/0.1021, allocations: 462.7 kB / 0.4952 GB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.1021, allocations: 192 / 0.4952 GB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.111e-05/0.1021, allocations: 23.94 kB / 0.4952 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.1022, allocations: 12 kB / 0.4952 GB, free: 3.578 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005946/0.1028, allocations: 375.7 kB / 0.4956 GB, free: 3.211 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.1041, allocations: 1.133 MB / 0.4967 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.1051, allocations: 0.513 MB / 0.4972 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002805/0.1054, allocations: 181.6 kB / 0.4974 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.533e-05/0.1055, allocations: 40.95 kB / 0.4974 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004389/0.1059, allocations: 264.7 kB / 0.4976 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.433e-06/0.106, allocations: 4 kB / 0.4976 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.0009275/0.1069, allocations: 0.5596 MB / 0.4982 GB, free: 428 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.1069, allocations: 85.05 kB / 0.4983 GB, free: 324 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002987/0.1072, allocations: 353.6 kB / 0.4986 GB, free: 15.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.1073, allocations: 37.7 kB / 0.4987 GB, free: 15.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.1074, allocations: 252.6 kB / 0.4989 GB, free: 15.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.142e-05/0.1075, allocations: 142.8 kB / 0.499 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.806e-05/0.1076, allocations: 57.69 kB / 0.4991 GB, free: 15.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1077, allocations: 354.8 kB / 0.4994 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.108, allocations: 143.9 kB / 0.4996 GB, free: 14.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000257/0.1082, allocations: 182.3 kB / 0.4997 GB, free: 14.78 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002376/0.1106, allocations: 0.6647 MB / 0.5004 GB, free: 14.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1106, allocations: 0 / 0.5004 GB, free: 14.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006356/0.1113, allocations: 437.1 kB / 0.5008 GB, free: 13.67 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.1113, allocations: 4 kB / 0.5008 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1113, allocations: 0 / 0.5008 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.1113, allocations: 4 kB / 0.5008 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000276/0.1116, allocations: 63.91 kB / 0.5009 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.1116, allocations: 11.97 kB / 0.5009 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.1118, allocations: 35.77 kB / 0.5009 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.1118, allocations: 12 kB / 0.5009 GB, free: 13.54 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.0002043/0.112, allocations: 186.5 kB / 0.5011 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.761e-05/0.1121, allocations: 43.72 kB / 0.5011 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007323/0.1128, allocations: 466.3 kB / 0.5016 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.1128, allocations: 4 kB / 0.5016 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1128, allocations: 3.938 kB / 0.5016 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1128, allocations: 4 kB / 0.5016 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004368/0.1133, allocations: 0.5008 MB / 0.5021 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.1133, allocations: 0 / 0.5021 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002566/0.1136, allocations: 63.91 kB / 0.5021 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.318e-05/0.1136, allocations: 4 kB / 0.5022 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.1136, allocations: 8.281 kB / 0.5022 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.1136, allocations: 7.938 kB / 0.5022 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.1136, allocations: 3.938 kB / 0.5022 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006444/0.1143, allocations: 461.4 kB / 0.5026 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.491e-05/0.1143, allocations: 120.8 kB / 0.5027 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/0.1144, allocations: 16 kB / 0.5027 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.1145, allocations: 12 kB / 0.5028 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.818e-05/0.1146, allocations: 31.89 kB / 0.5028 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.1146, allocations: 12 kB / 0.5028 GB, free: 11.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002067/0.1148, allocations: 255.1 kB / 0.503 GB, free: 11.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1149, allocations: 0 / 0.503 GB, free: 11.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002797/0.1151, allocations: 91.67 kB / 0.5031 GB, free: 11.18 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.0001435/0.1153, allocations: 119.2 kB / 0.5032 GB, free: 11.05 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006098/0.1159, allocations: 360.1 kB / 0.5036 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1159, allocations: 4 kB / 0.5036 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003019/0.1162, allocations: 203.5 kB / 0.5038 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002246/0.1165, allocations: 24.06 kB / 0.5038 GB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.1176, allocations: 0.8492 MB / 0.5046 GB, free: 9.602 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/0.118, allocations: 0.8502 MB / 0.5055 GB, free: 8.723 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001114/0.1181, allocations: 34.28 kB / 0.5055 GB, free: 8.688 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.008e-05/0.1182, allocations: 31.42 kB / 0.5055 GB, free: 8.656 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1182, allocations: 0 / 0.5055 GB, free: 8.656 MB / 398.1 MB Notification: Performance of Templates: time 0.005554/0.1237, allocations: 2.433 MB / 0.5079 GB, free: 6.223 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)