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.001671/0.001671, allocations: 109.8 kB / 16.4 MB, free: 6.383 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.00186/0.00186, allocations: 192.1 kB / 17.33 MB, free: 5.844 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.423/1.423, allocations: 222.9 MB / 241 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.1973/0.1973, allocations: 28.78 MB / 320 MB, free: 1.93 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 64.03 kB / 444.9 MB, free: 2.602 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1138, allocations: 56.42 MB / 0.4896 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003789/0.1176, allocations: 2.382 MB / 0.4919 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.1187, allocations: 426.8 kB / 0.4923 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.1188, allocations: 7.938 kB / 0.4924 GB, free: 7.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001581/0.1189, allocations: 51.39 kB / 0.4924 GB, free: 7.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.1191, allocations: 23.69 kB / 0.4924 GB, free: 7.227 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004816/0.1195, allocations: 151.7 kB / 0.4926 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003763/0.1199, allocations: 316.7 kB / 0.4929 GB, free: 6.766 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000283/0.1202, allocations: 158.7 kB / 0.493 GB, free: 6.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.1204, allocations: 139.4 kB / 0.4932 GB, free: 6.477 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.1206, allocations: 171.1 kB / 0.4933 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.769e-05/0.1206, allocations: 40 kB / 0.4934 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.1208, allocations: 63.97 kB / 0.4934 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.1209, allocations: 127.6 kB / 0.4935 GB, free: 6.082 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001944/0.1211, allocations: 210.6 kB / 0.4937 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004929/0.1216, allocations: 433.6 kB / 0.4942 GB, free: 5.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1216, allocations: 0 / 0.4942 GB, free: 5.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1216, allocations: 0 / 0.4942 GB, free: 5.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1216, allocations: 0 / 0.4942 GB, free: 5.449 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.001384/0.123, allocations: 0.8004 MB / 0.4949 GB, free: 4.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.123, allocations: 12.02 kB / 0.4949 GB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.1232, allocations: 64.56 kB / 0.495 GB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.1235, allocations: 282.3 kB / 0.4953 GB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.158e-05/0.1235, allocations: 37.31 kB / 0.4953 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.143e-05/0.1236, allocations: 48.38 kB / 0.4954 GB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008189/0.1244, allocations: 462.7 kB / 0.4958 GB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.1244, allocations: 4.125 kB / 0.4958 GB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.964e-05/0.1244, allocations: 19.94 kB / 0.4958 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.1245, allocations: 12 kB / 0.4958 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007126/0.1252, allocations: 379.8 kB / 0.4962 GB, free: 3.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/0.1268, allocations: 1.133 MB / 0.4973 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.1281, allocations: 0.4968 MB / 0.4978 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003143/0.1284, allocations: 165.6 kB / 0.4979 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.038e-05/0.1284, allocations: 40.95 kB / 0.498 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005241/0.129, allocations: 264.7 kB / 0.4982 GB, free: 1.062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.733e-06/0.129, allocations: 4 kB / 0.4982 GB, free: 1.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001094/0.1301, allocations: 0.5673 MB / 0.4988 GB, free: 496 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.1301, allocations: 81.11 kB / 0.4989 GB, free: 396 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00036/0.1305, allocations: 353.6 kB / 0.4992 GB, free: 32 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.133e-05/0.1305, allocations: 37.75 kB / 0.4992 GB, free: 15.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/0.1307, allocations: 248.6 kB / 0.4995 GB, free: 15.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.1309, allocations: 146.8 kB / 0.4996 GB, free: 15.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.475e-05/0.131, allocations: 57.69 kB / 0.4997 GB, free: 15.53 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002241/0.1312, allocations: 350.8 kB / 0.5 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/0.1315, allocations: 139.9 kB / 0.5001 GB, free: 15.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003182/0.1318, allocations: 182.3 kB / 0.5003 GB, free: 14.86 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002634/0.1344, allocations: 0.6647 MB / 0.501 GB, free: 14.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1344, allocations: 4 kB / 0.501 GB, free: 14.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007342/0.1352, allocations: 433.1 kB / 0.5014 GB, free: 13.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.1352, allocations: 4 kB / 0.5014 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1352, allocations: 0 / 0.5014 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.1352, allocations: 4 kB / 0.5014 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003188/0.1355, allocations: 67.91 kB / 0.5015 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/0.1355, allocations: 11.92 kB / 0.5015 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.1357, allocations: 31.81 kB / 0.5015 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.1357, allocations: 15.94 kB / 0.5015 GB, free: 13.62 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.0002461/0.136, allocations: 182.6 kB / 0.5017 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.316e-05/0.136, allocations: 43.72 kB / 0.5017 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008525/0.1369, allocations: 462.3 kB / 0.5022 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.1369, allocations: 8 kB / 0.5022 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1369, allocations: 3.938 kB / 0.5022 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1369, allocations: 0 / 0.5022 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000551/0.1374, allocations: 0.5008 MB / 0.5027 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1374, allocations: 7.938 kB / 0.5027 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00029/0.1377, allocations: 63.91 kB / 0.5027 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.1377, allocations: 4.281 kB / 0.5027 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.1378, allocations: 12 kB / 0.5028 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1378, allocations: 0 / 0.5028 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.1378, allocations: 11.92 kB / 0.5028 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007924/0.1386, allocations: 457.4 kB / 0.5032 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.382e-05/0.1387, allocations: 124.8 kB / 0.5033 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.207e-05/0.1387, allocations: 8 kB / 0.5033 GB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/0.1389, allocations: 12 kB / 0.5033 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.69e-05/0.1389, allocations: 31.89 kB / 0.5034 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.139, allocations: 12 kB / 0.5034 GB, free: 11.6 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000275/0.1392, allocations: 259.1 kB / 0.5036 GB, free: 11.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1392, allocations: 0 / 0.5036 GB, free: 11.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.1395, allocations: 91.67 kB / 0.5037 GB, free: 11.25 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.0001648/0.1397, allocations: 123.1 kB / 0.5038 GB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006898/0.1404, allocations: 344.2 kB / 0.5042 GB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.1404, allocations: 4 kB / 0.5042 GB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003424/0.1407, allocations: 187.5 kB / 0.5043 GB, free: 10.6 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.141, allocations: 24.22 kB / 0.5044 GB, free: 10.58 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/0.1424, allocations: 0.857 MB / 0.5052 GB, free: 9.695 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004975/0.1429, allocations: 0.8463 MB / 0.506 GB, free: 8.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001174/0.143, allocations: 34.28 kB / 0.5061 GB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.958e-05/0.1431, allocations: 31.42 kB / 0.5061 GB, free: 8.754 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1431, allocations: 0 / 0.5061 GB, free: 8.754 MB / 398.1 MB Notification: Performance of Templates: time 0.006696/0.1498, allocations: 2.453 MB / 0.5085 GB, free: 6.301 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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1)