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.001812/0.001812, allocations: 108.9 kB / 16.41 MB, free: 5.98 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.002094/0.002094, allocations: 194.3 kB / 17.35 MB, free: 5.574 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.359/1.359, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1801/0.1801, allocations: 28.79 MB / 320 MB, free: 1.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001705, allocations: 67.89 kB / 445 MB, free: 2.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1277, allocations: 56.4 MB / 0.4896 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.004203/0.1319, allocations: 2.372 MB / 0.4919 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001349/0.1333, allocations: 442.6 kB / 0.4923 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003264/0.1337, allocations: 4 kB / 0.4924 GB, free: 7.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002102/0.1339, allocations: 47.45 kB / 0.4924 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002585/0.1342, allocations: 27.62 kB / 0.4924 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006268/0.1348, allocations: 151.7 kB / 0.4926 GB, free: 7.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004766/0.1353, allocations: 312.7 kB / 0.4929 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003898/0.1357, allocations: 198.7 kB / 0.4931 GB, free: 6.566 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.1359, allocations: 139.4 kB / 0.4932 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002519/0.1362, allocations: 179.1 kB / 0.4934 GB, free: 6.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.11e-05/0.1363, allocations: 39.94 kB / 0.4934 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.1364, allocations: 59.97 kB / 0.4935 GB, free: 6.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.1366, allocations: 123.6 kB / 0.4936 GB, free: 6.035 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000208/0.1368, allocations: 214.5 kB / 0.4938 GB, free: 5.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005317/0.1374, allocations: 434.1 kB / 0.4942 GB, free: 5.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1374, allocations: 0 / 0.4942 GB, free: 5.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1374, allocations: 4 kB / 0.4942 GB, free: 5.395 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.1374, allocations: 0 / 0.4942 GB, free: 5.395 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.001416/0.1388, allocations: 0.7775 MB / 0.495 GB, free: 4.562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.1389, allocations: 12.03 kB / 0.495 GB, free: 4.551 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.139, allocations: 64.19 kB / 0.495 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.1393, allocations: 286 kB / 0.4953 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.945e-05/0.1393, allocations: 33.31 kB / 0.4953 GB, free: 4.137 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.623e-05/0.1394, allocations: 44.38 kB / 0.4954 GB, free: 4.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000856/0.1402, allocations: 458.7 kB / 0.4958 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.1403, allocations: 4.172 kB / 0.4958 GB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.765e-05/0.1403, allocations: 19.94 kB / 0.4958 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.1403, allocations: 16 kB / 0.4959 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006753/0.141, allocations: 371.7 kB / 0.4962 GB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.1427, allocations: 1.141 MB / 0.4973 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.1439, allocations: 0.516 MB / 0.4978 GB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003231/0.1443, allocations: 173.6 kB / 0.498 GB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.2e-05/0.1443, allocations: 32.98 kB / 0.498 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005222/0.1449, allocations: 268.7 kB / 0.4983 GB, free: 1.012 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.395e-06/0.1449, allocations: 4 kB / 0.4983 GB, free: 1.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001082/0.146, allocations: 0.5516 MB / 0.4988 GB, free: 460 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.146, allocations: 89.09 kB / 0.4989 GB, free: 352 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/0.1464, allocations: 349.7 kB / 0.4992 GB, free: 15.99 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.612e-05/0.1465, allocations: 41.64 kB / 0.4993 GB, free: 15.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.1467, allocations: 248.2 kB / 0.4995 GB, free: 15.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.1468, allocations: 134.1 kB / 0.4996 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.475e-05/0.1469, allocations: 65.58 kB / 0.4997 GB, free: 15.49 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1471, allocations: 350.8 kB / 0.5 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/0.1473, allocations: 143.9 kB / 0.5002 GB, free: 15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002765/0.1476, allocations: 186.3 kB / 0.5004 GB, free: 14.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002641/0.1503, allocations: 0.6647 MB / 0.501 GB, free: 14.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.1503, allocations: 4 kB / 0.501 GB, free: 14.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006987/0.151, allocations: 428.8 kB / 0.5014 GB, free: 13.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.151, allocations: 4 kB / 0.5014 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.151, allocations: 4 kB / 0.5014 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.1511, allocations: 0 / 0.5014 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003094/0.1514, allocations: 75.94 kB / 0.5015 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.1514, allocations: 7.922 kB / 0.5015 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001677/0.1516, allocations: 31.77 kB / 0.5015 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.1516, allocations: 11.94 kB / 0.5015 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.0002877/0.1519, allocations: 190.7 kB / 0.5017 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.846e-05/0.152, allocations: 39.53 kB / 0.5018 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000787/0.1527, allocations: 462.3 kB / 0.5022 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/0.1528, allocations: 7.984 kB / 0.5022 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.1528, allocations: 3.938 kB / 0.5022 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.1528, allocations: 0 / 0.5022 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005521/0.1534, allocations: 0.5047 MB / 0.5027 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.1534, allocations: 0 / 0.5027 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002901/0.1537, allocations: 75.89 kB / 0.5028 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-06/0.1537, allocations: 0 / 0.5028 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.759e-05/0.1537, allocations: 8 kB / 0.5028 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1537, allocations: 0 / 0.5028 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.1537, allocations: 7.938 kB / 0.5028 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007639/0.1545, allocations: 461.1 kB / 0.5032 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.1546, allocations: 116.6 kB / 0.5033 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.247e-05/0.1547, allocations: 8 kB / 0.5034 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001548/0.1549, allocations: 11.98 kB / 0.5034 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.555e-05/0.155, allocations: 31.89 kB / 0.5034 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.328e-05/0.155, allocations: 12 kB / 0.5034 GB, free: 11.56 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002688/0.1553, allocations: 255.1 kB / 0.5037 GB, free: 11.31 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1553, allocations: 0 / 0.5037 GB, free: 11.31 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003522/0.1556, allocations: 91.53 kB / 0.5037 GB, free: 11.22 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.0002175/0.1559, allocations: 115.2 kB / 0.5038 GB, free: 11.1 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007278/0.1566, allocations: 372.1 kB / 0.5042 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1566, allocations: 0 / 0.5042 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003481/0.157, allocations: 207.5 kB / 0.5044 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/0.1573, allocations: 38.55 kB / 0.5044 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.1588, allocations: 0.8558 MB / 0.5053 GB, free: 9.609 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/0.1593, allocations: 0.8541 MB / 0.5061 GB, free: 8.727 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.451e-05/0.1594, allocations: 35.42 kB / 0.5061 GB, free: 8.691 MB / 398.1 MB Notification: Performance of SimCode: time 1.974e-06/0.1594, allocations: 0 / 0.5061 GB, free: 8.691 MB / 398.1 MB Notification: Performance of Templates: time 0.008066/0.1675, allocations: 4.129 MB / 0.5102 GB, free: 4.555 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)