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: "" <> buildModelFMU(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,fileNamePrefix="SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,fileNamePrefix="SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007912/0.007912, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.002143/0.002143, allocations: 197 kB / 16.67 MB, free: 5.973 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.54/1.54, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3329/0.3329, allocations: 28.8 MB / 319.4 MB, free: 5.562 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 63.28 kB / 443.8 MB, free: 36.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1085, allocations: 56.42 MB / 0.4885 GB, free: 8.734 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.002833/0.1113, allocations: 2.387 MB / 0.4908 GB, free: 6.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008453/0.1122, allocations: 433.2 kB / 0.4912 GB, free: 6.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.1123, allocations: 4.125 kB / 0.4913 GB, free: 6.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.1125, allocations: 42.22 kB / 0.4913 GB, free: 6.441 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001408/0.1127, allocations: 33.11 kB / 0.4913 GB, free: 6.414 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004325/0.1131, allocations: 144.5 kB / 0.4915 GB, free: 6.297 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002829/0.1134, allocations: 323.2 kB / 0.4918 GB, free: 6.102 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002979/0.1137, allocations: 198.3 kB / 0.492 GB, free: 5.984 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.1138, allocations: 138.8 kB / 0.4921 GB, free: 5.891 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/0.114, allocations: 175.7 kB / 0.4923 GB, free: 5.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.082e-05/0.1141, allocations: 35.06 kB / 0.4923 GB, free: 5.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.1142, allocations: 67.38 kB / 0.4924 GB, free: 5.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.1144, allocations: 128.8 kB / 0.4925 GB, free: 5.637 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001404/0.1145, allocations: 209.6 kB / 0.4927 GB, free: 5.469 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000435/0.1149, allocations: 438.9 kB / 0.4931 GB, free: 5.137 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.115, allocations: 0 / 0.4931 GB, free: 5.137 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.115, allocations: 4 kB / 0.4931 GB, free: 5.133 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.115, allocations: 0 / 0.4931 GB, free: 5.133 MB / 366.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.001149/0.1161, allocations: 0.7941 MB / 0.4939 GB, free: 4.441 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.1162, allocations: 13.41 kB / 0.4939 GB, free: 4.438 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001142/0.1163, allocations: 86.8 kB / 0.494 GB, free: 4.359 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.304e-05/0.1164, allocations: 66.33 kB / 0.494 GB, free: 4.324 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001877/0.1166, allocations: 284.3 kB / 0.4943 GB, free: 4.035 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.61e-05/0.1167, allocations: 32.84 kB / 0.4943 GB, free: 4.023 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.704e-05/0.1167, allocations: 45.72 kB / 0.4944 GB, free: 4.008 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007304/0.1175, allocations: 463.8 kB / 0.4948 GB, free: 3.746 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.1175, allocations: 9 kB / 0.4948 GB, free: 3.738 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.009e-05/0.1175, allocations: 19.78 kB / 0.4949 GB, free: 3.723 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.1175, allocations: 12.06 kB / 0.4949 GB, free: 3.711 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005558/0.1181, allocations: 375.7 kB / 0.4952 GB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.1193, allocations: 1.153 MB / 0.4963 GB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.1203, allocations: 0.5174 MB / 0.4969 GB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002527/0.1206, allocations: 177.7 kB / 0.497 GB, free: 1.426 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.831e-05/0.1206, allocations: 36.97 kB / 0.4971 GB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000399/0.121, allocations: 268.7 kB / 0.4973 GB, free: 1.109 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.054e-06/0.1211, allocations: 0 / 0.4973 GB, free: 1.109 MB / 366.1 MB Notification: Performance of matching and sorting (n=41): time 0.0008895/0.1219, allocations: 0.5676 MB / 0.4979 GB, free: 0.5352 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.122, allocations: 88.98 kB / 0.498 GB, free: 440 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.1222, allocations: 357.6 kB / 0.4983 GB, free: 72 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.1223, allocations: 33.7 kB / 0.4983 GB, free: 32 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002017/0.1225, allocations: 256.6 kB / 0.4986 GB, free: 15.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.1226, allocations: 138.8 kB / 0.4987 GB, free: 15.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.223e-05/0.1227, allocations: 57.7 kB / 0.4988 GB, free: 15.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.1229, allocations: 358.8 kB / 0.4991 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002911/0.1232, allocations: 135.9 kB / 0.4992 GB, free: 15.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003144/0.1235, allocations: 182.3 kB / 0.4994 GB, free: 14.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002696/0.1262, allocations: 0.6686 MB / 0.5001 GB, free: 14.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1262, allocations: 0 / 0.5001 GB, free: 14.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000759/0.127, allocations: 429.1 kB / 0.5005 GB, free: 13.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.127, allocations: 11.98 kB / 0.5005 GB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.127, allocations: 0 / 0.5005 GB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/0.1271, allocations: 15.97 kB / 0.5005 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003004/0.1274, allocations: 63.91 kB / 0.5006 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.1274, allocations: 4 kB / 0.5006 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.1276, allocations: 35.77 kB / 0.5006 GB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.1276, allocations: 8 kB / 0.5006 GB, free: 13.66 MB / 382.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.000269/0.1279, allocations: 181.8 kB / 0.5008 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.871e-05/0.1279, allocations: 43.7 kB / 0.5008 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000872/0.1288, allocations: 462.3 kB / 0.5013 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-06/0.1288, allocations: 7.938 kB / 0.5013 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1288, allocations: 0 / 0.5013 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.1289, allocations: 7.984 kB / 0.5013 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005603/0.1294, allocations: 0.4894 MB / 0.5017 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.1294, allocations: 8 kB / 0.5018 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002911/0.1297, allocations: 63.89 kB / 0.5018 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.1298, allocations: 4 kB / 0.5018 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.1298, allocations: 12 kB / 0.5018 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.1298, allocations: 3.938 kB / 0.5018 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.1298, allocations: 3.938 kB / 0.5018 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007858/0.1306, allocations: 465.3 kB / 0.5023 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.187e-05/0.1307, allocations: 112.8 kB / 0.5024 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.08e-05/0.1308, allocations: 12 kB / 0.5024 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.1309, allocations: 23.86 kB / 0.5024 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.11e-05/0.131, allocations: 31.7 kB / 0.5025 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.422e-05/0.131, allocations: 12 kB / 0.5025 GB, free: 11.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002597/0.1313, allocations: 251.1 kB / 0.5027 GB, free: 11.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1313, allocations: 7.938 kB / 0.5027 GB, free: 11.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003193/0.1316, allocations: 95.67 kB / 0.5028 GB, free: 11.29 MB / 382.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.001543/0.1332, allocations: 1.222 MB / 0.504 GB, free: 10.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007024/0.1339, allocations: 367.4 kB / 0.5043 GB, free: 9.676 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1339, allocations: 3.938 kB / 0.5044 GB, free: 9.672 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003581/0.1343, allocations: 203.5 kB / 0.5045 GB, free: 9.473 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.1345, allocations: 29.67 kB / 0.5046 GB, free: 9.441 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005164/0.1397, allocations: 3.8 MB / 0.5083 GB, free: 5.535 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005197/0.1403, allocations: 0.8512 MB / 0.5091 GB, free: 4.656 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001371/0.1404, allocations: 38.38 kB / 0.5092 GB, free: 4.617 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002315/0.1406, allocations: 175.3 kB / 0.5093 GB, free: 4.445 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1407, allocations: 0 / 0.5093 GB, free: 4.445 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02915/0.1698, allocations: 6.449 MB / 0.5156 GB, free: 14.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.46/8.63, allocations: 13.47 kB / 0.5156 GB, free: 14.06 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM_res.csv --start-time 1949 --stop-time 1978 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0116 SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM.fmu > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1)