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.001605/0.001605, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 186.8 kB / 16.66 MB, free: 6.602 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3195/0.3195, allocations: 28.81 MB / 319.3 MB, free: 5.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 62.89 kB / 443.8 MB, free: 36.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09268/0.09399, allocations: 56.43 MB / 0.4885 GB, free: 8.887 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.002843/0.09687, allocations: 2.378 MB / 0.4908 GB, free: 6.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008123/0.09771, allocations: 429.3 kB / 0.4912 GB, free: 6.645 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.09786, allocations: 4.125 kB / 0.4912 GB, free: 6.645 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.09799, allocations: 51.52 kB / 0.4913 GB, free: 6.598 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001263/0.09815, allocations: 27.75 kB / 0.4913 GB, free: 6.574 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004044/0.09856, allocations: 141.9 kB / 0.4915 GB, free: 6.461 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002482/0.09882, allocations: 321.8 kB / 0.4918 GB, free: 6.266 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002702/0.09909, allocations: 210.5 kB / 0.492 GB, free: 6.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000107/0.09921, allocations: 136.6 kB / 0.4921 GB, free: 6.047 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.09938, allocations: 174.6 kB / 0.4923 GB, free: 5.906 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.396e-05/0.09944, allocations: 34.31 kB / 0.4923 GB, free: 5.906 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001302/0.09957, allocations: 63.78 kB / 0.4923 GB, free: 5.891 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.0997, allocations: 129.1 kB / 0.4925 GB, free: 5.797 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.09983, allocations: 218 kB / 0.4927 GB, free: 5.621 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004032/0.1002, allocations: 438.4 kB / 0.4931 GB, free: 5.289 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1002, allocations: 0 / 0.4931 GB, free: 5.289 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1003, allocations: 0 / 0.4931 GB, free: 5.289 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.1003, allocations: 0 / 0.4931 GB, free: 5.289 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.00109/0.1014, allocations: 0.7979 MB / 0.4939 GB, free: 4.594 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.1014, allocations: 9.406 kB / 0.4939 GB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.1015, allocations: 90.2 kB / 0.494 GB, free: 4.512 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.15e-05/0.1016, allocations: 65.61 kB / 0.494 GB, free: 4.477 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.1018, allocations: 278.2 kB / 0.4943 GB, free: 4.195 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.058e-05/0.1018, allocations: 31.81 kB / 0.4943 GB, free: 4.184 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.027e-05/0.1019, allocations: 45.03 kB / 0.4944 GB, free: 4.168 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006296/0.1025, allocations: 474.2 kB / 0.4948 GB, free: 3.773 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.1026, allocations: 3.938 kB / 0.4948 GB, free: 3.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.1026, allocations: 20 kB / 0.4948 GB, free: 3.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/0.1026, allocations: 12 kB / 0.4949 GB, free: 3.738 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005531/0.1032, allocations: 371.8 kB / 0.4952 GB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001268/0.1044, allocations: 1.165 MB / 0.4964 GB, free: 2.156 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.1055, allocations: 0.509 MB / 0.4968 GB, free: 1.629 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002566/0.1057, allocations: 177.6 kB / 0.497 GB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.725e-05/0.1058, allocations: 40.97 kB / 0.4971 GB, free: 1.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004204/0.1062, allocations: 264.8 kB / 0.4973 GB, free: 1.133 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 1.583e-06/0.1063, allocations: 0 / 0.4973 GB, free: 1.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=41): time 0.000889/0.1071, allocations: 0.5751 MB / 0.4979 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.1072, allocations: 81.11 kB / 0.4979 GB, free: 464 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002595/0.1075, allocations: 353.6 kB / 0.4983 GB, free: 100 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.1075, allocations: 33.7 kB / 0.4983 GB, free: 60 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/0.1077, allocations: 248.6 kB / 0.4986 GB, free: 15.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.1078, allocations: 142.8 kB / 0.4987 GB, free: 15.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.279e-05/0.1079, allocations: 61.69 kB / 0.4988 GB, free: 15.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.1081, allocations: 354.8 kB / 0.4991 GB, free: 15.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002558/0.1084, allocations: 139.9 kB / 0.4992 GB, free: 15.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002878/0.1087, allocations: 186.2 kB / 0.4994 GB, free: 14.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002431/0.1111, allocations: 0.6648 MB / 0.5 GB, free: 14.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1111, allocations: 0 / 0.5 GB, free: 14.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007006/0.1118, allocations: 437.1 kB / 0.5005 GB, free: 13.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.1119, allocations: 8 kB / 0.5005 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.1119, allocations: 0 / 0.5005 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.1119, allocations: 7.875 kB / 0.5005 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002854/0.1122, allocations: 67.91 kB / 0.5005 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.1122, allocations: 4 kB / 0.5006 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.1124, allocations: 35.77 kB / 0.5006 GB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.1124, allocations: 8 kB / 0.5006 GB, free: 13.68 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.0002348/0.1126, allocations: 185.7 kB / 0.5008 GB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.937e-05/0.1127, allocations: 39.72 kB / 0.5008 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008042/0.1135, allocations: 462.3 kB / 0.5012 GB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.1135, allocations: 11.88 kB / 0.5013 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.1135, allocations: 0 / 0.5013 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.1135, allocations: 4 kB / 0.5013 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005023/0.1141, allocations: 0.505 MB / 0.5018 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1141, allocations: 0 / 0.5018 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002665/0.1143, allocations: 63.91 kB / 0.5018 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.1143, allocations: 4 kB / 0.5018 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.1144, allocations: 11.98 kB / 0.5018 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.1144, allocations: 7.938 kB / 0.5018 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1144, allocations: 0 / 0.5018 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006995/0.1151, allocations: 461.3 kB / 0.5023 GB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.094e-05/0.1152, allocations: 120.7 kB / 0.5024 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.962e-05/0.1152, allocations: 12 kB / 0.5024 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.1154, allocations: 23.86 kB / 0.5024 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.648e-05/0.1155, allocations: 27.72 kB / 0.5025 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.1155, allocations: 12.28 kB / 0.5025 GB, free: 11.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002372/0.1157, allocations: 255.1 kB / 0.5027 GB, free: 11.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1157, allocations: 0 / 0.5027 GB, free: 11.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000323/0.1161, allocations: 95.67 kB / 0.5028 GB, free: 11.31 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.001398/0.1175, allocations: 1.226 MB / 0.504 GB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006427/0.1181, allocations: 371.4 kB / 0.5044 GB, free: 9.691 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.1181, allocations: 0 / 0.5044 GB, free: 9.691 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003154/0.1185, allocations: 199.6 kB / 0.5045 GB, free: 9.496 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.1188, allocations: 33.55 kB / 0.5046 GB, free: 9.457 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004575/0.1233, allocations: 3.796 MB / 0.5083 GB, free: 5.555 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004102/0.1238, allocations: 0.8551 MB / 0.5091 GB, free: 4.672 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001242/0.1239, allocations: 30.28 kB / 0.5091 GB, free: 4.641 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002035/0.1241, allocations: 167.4 kB / 0.5093 GB, free: 4.477 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1241, allocations: 0 / 0.5093 GB, free: 4.477 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0236/0.1477, allocations: 6.457 MB / 0.5156 GB, free: 14.1 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.957/8.104, allocations: 17.41 kB / 0.5156 GB, free: 14.09 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)