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.001527/0.001527, allocations: 103.9 kB / 16.35 MB, free: 6.289 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.001716/0.001716, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.382/1.382, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1775/0.1775, allocations: 28.78 MB / 319.9 MB, free: 1.953 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 62.94 kB / 388 MB, free: 40.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1109, allocations: 56.45 MB / 444.5 MB, free: 3.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003684/0.1146, allocations: 2.356 MB / 446.8 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009831/0.1157, allocations: 426.8 kB / 447.2 MB, free: 300 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.1158, allocations: 4 kB / 447.2 MB, free: 296 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.116, allocations: 55.39 kB / 447.3 MB, free: 240 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001413/0.1162, allocations: 35.61 kB / 447.3 MB, free: 204 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005598/0.1167, allocations: 143.7 kB / 447.5 MB, free: 60 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003731/0.1171, allocations: 316.7 kB / 447.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003448/0.1175, allocations: 202.7 kB / 448 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.1176, allocations: 139.4 kB / 448.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002564/0.1179, allocations: 179.1 kB / 448.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-05/0.1179, allocations: 36 kB / 448.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001321/0.1181, allocations: 59.97 kB / 448.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.1182, allocations: 127.6 kB / 448.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001849/0.1184, allocations: 210.6 kB / 448.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004619/0.1189, allocations: 434.1 kB / 449.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1189, allocations: 0 / 449.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1189, allocations: 0 / 449.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.1189, allocations: 0 / 449.1 MB, free: 14.38 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.001221/0.1202, allocations: 0.7853 MB / 449.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.1202, allocations: 12.03 kB / 449.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.993e-05/0.1203, allocations: 60.19 kB / 450 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000235/0.1206, allocations: 278.1 kB / 450.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.151e-05/0.1206, allocations: 41.36 kB / 450.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.483e-05/0.1207, allocations: 48.36 kB / 450.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007081/0.1214, allocations: 458.7 kB / 450.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.1214, allocations: 12.06 kB / 450.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.1214, allocations: 23.94 kB / 450.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.1215, allocations: 8 kB / 450.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006558/0.1221, allocations: 371.8 kB / 451.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.1237, allocations: 1.137 MB / 452.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.1249, allocations: 0.5133 MB / 452.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002883/0.1252, allocations: 173.6 kB / 453 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.876e-05/0.1253, allocations: 36.97 kB / 453.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005117/0.1258, allocations: 272.4 kB / 453.3 MB, free: 9.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.693e-06/0.1258, allocations: 0 / 453.3 MB, free: 9.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.00106/0.1268, allocations: 0.5634 MB / 453.9 MB, free: 9.414 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.802e-05/0.1269, allocations: 81.11 kB / 454 MB, free: 9.316 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003641/0.1273, allocations: 357.6 kB / 454.3 MB, free: 8.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.1273, allocations: 29.7 kB / 454.3 MB, free: 8.926 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.1275, allocations: 252.3 kB / 454.6 MB, free: 8.672 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.1276, allocations: 130.1 kB / 454.7 MB, free: 8.543 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.156e-05/0.1277, allocations: 65.48 kB / 454.8 MB, free: 8.473 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1279, allocations: 350.8 kB / 455.1 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.1281, allocations: 143.9 kB / 455.3 MB, free: 7.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003233/0.1285, allocations: 182.2 kB / 455.4 MB, free: 7.793 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002617/0.1311, allocations: 0.6652 MB / 456.1 MB, free: 7.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1311, allocations: 0 / 456.1 MB, free: 7.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008922/0.132, allocations: 437 kB / 456.5 MB, free: 6.684 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.1321, allocations: 8 kB / 456.5 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.1321, allocations: 0 / 456.5 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.969e-05/0.1321, allocations: 4 kB / 456.5 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00032/0.1324, allocations: 71.89 kB / 456.6 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.656e-05/0.1325, allocations: 7.938 kB / 456.6 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001606/0.1326, allocations: 27.69 kB / 456.6 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.692e-05/0.1327, allocations: 15.98 kB / 456.7 MB, free: 6.551 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.0003657/0.133, allocations: 185.7 kB / 456.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.984e-05/0.1331, allocations: 35.53 kB / 456.9 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008704/0.134, allocations: 470 kB / 457.3 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.134, allocations: 4 kB / 457.3 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.134, allocations: 3.938 kB / 457.3 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.134, allocations: 7.984 kB / 457.4 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000596/0.1347, allocations: 0.4971 MB / 457.8 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.1347, allocations: 0 / 457.8 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002724/0.1349, allocations: 63.91 kB / 457.9 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.135, allocations: 0 / 457.9 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.135, allocations: 23.92 kB / 457.9 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.135, allocations: 7.938 kB / 457.9 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.135, allocations: 7.922 kB / 457.9 MB, free: 5.191 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007019/0.1357, allocations: 460.9 kB / 458.4 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8e-05/0.1358, allocations: 112.6 kB / 458.5 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.612e-05/0.1359, allocations: 12 kB / 458.5 MB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.136, allocations: 11.98 kB / 458.5 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.723e-05/0.1361, allocations: 27.91 kB / 458.6 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.1361, allocations: 23.98 kB / 458.6 MB, free: 4.516 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002288/0.1364, allocations: 247.2 kB / 458.8 MB, free: 4.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1364, allocations: 0 / 458.8 MB, free: 4.277 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003124/0.1367, allocations: 91.53 kB / 458.9 MB, free: 4.188 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.0001752/0.1369, allocations: 119.2 kB / 459 MB, free: 4.062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007593/0.1376, allocations: 360.1 kB / 459.4 MB, free: 3.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.1377, allocations: 8.062 kB / 459.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004373/0.1381, allocations: 199.8 kB / 459.6 MB, free: 3.508 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.1384, allocations: 21.56 kB / 459.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.1399, allocations: 0.8307 MB / 460.4 MB, free: 2.621 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004667/0.1404, allocations: 0.8502 MB / 461.3 MB, free: 1.738 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001111/0.1405, allocations: 26.28 kB / 461.3 MB, free: 1.715 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.679e-05/0.1406, allocations: 27.44 kB / 461.3 MB, free: 1.688 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1406, allocations: 0 / 461.3 MB, free: 1.688 MB / 334.1 MB Notification: Performance of Templates: time 0.006536/0.1471, allocations: 2.389 MB / 463.7 MB, free: 15.3 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 cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1)