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.001107/0.001107, allocations: 104.6 kB / 15.98 MB, free: 6.344 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.001183/0.001184, allocations: 201.3 kB / 16.91 MB, free: 6.188 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.3/1.3, allocations: 222.9 MB / 240.6 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.199/0.199, allocations: 28.78 MB / 319.5 MB, free: 1.945 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 59.58 kB / 386.7 MB, free: 40.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1071, allocations: 56.43 MB / 443.2 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003561/0.1107, allocations: 2.41 MB / 445.6 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009806/0.1117, allocations: 426.8 kB / 446 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.1118, allocations: 4 kB / 446 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.112, allocations: 35.7 kB / 446 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001318/0.1122, allocations: 11.88 kB / 446 MB, free: 1.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000441/0.1126, allocations: 131.8 kB / 446.2 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003205/0.1129, allocations: 320.8 kB / 446.5 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003087/0.1133, allocations: 190.7 kB / 446.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001337/0.1134, allocations: 143.4 kB / 446.8 MB, free: 468 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.1136, allocations: 179.1 kB / 447 MB, free: 288 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.288e-05/0.1137, allocations: 36 kB / 447 MB, free: 252 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.1138, allocations: 71.84 kB / 447.1 MB, free: 180 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.1139, allocations: 123.6 kB / 447.2 MB, free: 56 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001677/0.1141, allocations: 214.7 kB / 447.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003237/0.1144, allocations: 275.4 kB / 447.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.1145, allocations: 0 / 447.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1145, allocations: 0 / 447.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.1145, allocations: 4 kB / 447.7 MB, free: 15.57 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.001225/0.1157, allocations: 0.7816 MB / 448.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.1158, allocations: 12.03 kB / 448.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.689e-05/0.1159, allocations: 64.19 kB / 448.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.1161, allocations: 278.1 kB / 448.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.781e-05/0.1161, allocations: 33.38 kB / 448.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.294e-05/0.1162, allocations: 40.38 kB / 448.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007464/0.117, allocations: 462.7 kB / 449.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.117, allocations: 4.125 kB / 449.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.725e-05/0.117, allocations: 23.94 kB / 449.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.1171, allocations: 16 kB / 449.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006437/0.1177, allocations: 371.8 kB / 449.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001567/0.1193, allocations: 1.145 MB / 450.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.1204, allocations: 0.5133 MB / 451.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002889/0.1207, allocations: 173.6 kB / 451.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.227e-05/0.1208, allocations: 36.97 kB / 451.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000521/0.1213, allocations: 276.6 kB / 451.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.895e-06/0.1213, allocations: 0 / 451.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.001009/0.1224, allocations: 0.5565 MB / 452.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.1224, allocations: 85.11 kB / 452.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003346/0.1228, allocations: 357.6 kB / 452.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.372e-05/0.1228, allocations: 33.7 kB / 452.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001672/0.123, allocations: 252.3 kB / 453.1 MB, free: 9.863 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.1231, allocations: 130.1 kB / 453.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.1232, allocations: 53.7 kB / 453.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.1234, allocations: 350.8 kB / 453.7 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002682/0.1236, allocations: 143.7 kB / 453.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002758/0.1239, allocations: 190 kB / 454 MB, free: 8.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00257/0.1265, allocations: 0.672 MB / 454.7 MB, free: 8.309 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1265, allocations: 0 / 454.7 MB, free: 8.309 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006694/0.1272, allocations: 432.9 kB / 455.1 MB, free: 7.879 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.1272, allocations: 4 kB / 455.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.1272, allocations: 0 / 455.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.1273, allocations: 7.938 kB / 455.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003065/0.1276, allocations: 79.83 kB / 455.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.1276, allocations: 7.938 kB / 455.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.1277, allocations: 27.69 kB / 455.2 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.1278, allocations: 16.03 kB / 455.2 MB, free: 7.738 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.0002736/0.1281, allocations: 181.7 kB / 455.4 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.317e-05/0.1281, allocations: 39.77 kB / 455.4 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007856/0.1289, allocations: 465 kB / 455.9 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.273e-06/0.1289, allocations: 4 kB / 455.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.1289, allocations: 7.938 kB / 455.9 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.129, allocations: 0 / 455.9 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005141/0.1295, allocations: 0.4971 MB / 456.4 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1295, allocations: 3.938 kB / 456.4 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002722/0.1298, allocations: 67.91 kB / 456.5 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.1298, allocations: 4 kB / 456.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.1298, allocations: 4 kB / 456.5 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.1298, allocations: 11.98 kB / 456.5 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1298, allocations: 3.938 kB / 456.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007072/0.1305, allocations: 449.8 kB / 456.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.278e-05/0.1306, allocations: 116.6 kB / 457 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.549e-05/0.1307, allocations: 12 kB / 457.1 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.1308, allocations: 19.98 kB / 457.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.31e-05/0.1309, allocations: 27.91 kB / 457.1 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.021e-05/0.1309, allocations: 12 kB / 457.1 MB, free: 5.727 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002316/0.1312, allocations: 255.1 kB / 457.4 MB, free: 5.484 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1312, allocations: 0 / 457.4 MB, free: 5.484 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003126/0.1315, allocations: 91.53 kB / 457.5 MB, free: 5.395 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.0001813/0.1317, allocations: 119.1 kB / 457.6 MB, free: 5.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007318/0.1324, allocations: 390.9 kB / 458 MB, free: 4.887 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.1324, allocations: 0 / 458 MB, free: 4.887 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000333/0.1328, allocations: 199.8 kB / 458.2 MB, free: 4.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.1331, allocations: 26.06 kB / 458.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.1345, allocations: 1.082 MB / 459.3 MB, free: 3.543 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000443/0.135, allocations: 0.8502 MB / 460.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.002e-05/0.1351, allocations: 35.44 kB / 460.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.1351, allocations: 0 / 460.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of Templates: time 0.006513/0.1416, allocations: 4.036 MB / 464.2 MB, free: 14.58 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 -lv LOG_STATS > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1)