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.005581/0.005581, allocations: 101.9 kB / 15.73 MB, free: 6.023 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.00129/0.00129, allocations: 196.1 kB / 16.68 MB, free: 5.934 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1589/0.1589, allocations: 28.78 MB / 319.3 MB, free: 1.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 67.89 kB / 443.8 MB, free: 3.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09945/0.1007, allocations: 56.41 MB / 0.4885 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003723/0.1044, allocations: 2.374 MB / 0.4908 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.1056, allocations: 430.6 kB / 0.4912 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002047/0.1059, allocations: 8 kB / 0.4912 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001625/0.106, allocations: 43.47 kB / 0.4913 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001843/0.1062, allocations: 35.61 kB / 0.4913 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005225/0.1068, allocations: 151.7 kB / 0.4914 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003592/0.1071, allocations: 312.7 kB / 0.4917 GB, free: 7.246 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003165/0.1075, allocations: 194.7 kB / 0.4919 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.1076, allocations: 147.3 kB / 0.4921 GB, free: 6.914 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/0.1079, allocations: 179 kB / 0.4922 GB, free: 6.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.289e-05/0.1079, allocations: 32 kB / 0.4923 GB, free: 6.707 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.1081, allocations: 67.97 kB / 0.4923 GB, free: 6.641 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.1082, allocations: 123.6 kB / 0.4924 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001827/0.1084, allocations: 210.5 kB / 0.4926 GB, free: 6.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004827/0.1089, allocations: 433.6 kB / 0.4931 GB, free: 5.887 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1089, allocations: 0 / 0.4931 GB, free: 5.887 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1089, allocations: 0 / 0.4931 GB, free: 5.887 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.109, allocations: 4 kB / 0.4931 GB, free: 5.883 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.001265/0.1102, allocations: 0.8043 MB / 0.4938 GB, free: 5.023 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.1103, allocations: 8.031 kB / 0.4939 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.1104, allocations: 87.7 kB / 0.4939 GB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.867e-05/0.1105, allocations: 64.52 kB / 0.494 GB, free: 4.859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000228/0.1107, allocations: 290.3 kB / 0.4943 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.743e-05/0.1108, allocations: 37.38 kB / 0.4943 GB, free: 4.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.202e-05/0.1108, allocations: 40.38 kB / 0.4943 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007198/0.1116, allocations: 466.7 kB / 0.4948 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.1116, allocations: 3.938 kB / 0.4948 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/0.1116, allocations: 19.94 kB / 0.4948 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.1117, allocations: 12 kB / 0.4948 GB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006668/0.1123, allocations: 379.8 kB / 0.4952 GB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.1139, allocations: 1.145 MB / 0.4963 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.1151, allocations: 0.5169 MB / 0.4968 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002948/0.1154, allocations: 173.7 kB / 0.497 GB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.547e-05/0.1155, allocations: 36.97 kB / 0.497 GB, free: 1.641 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000508/0.116, allocations: 264.7 kB / 0.4973 GB, free: 1.363 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.375e-06/0.116, allocations: 4 kB / 0.4973 GB, free: 1.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001015/0.117, allocations: 0.5673 MB / 0.4978 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.49e-05/0.1171, allocations: 81.11 kB / 0.4979 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003118/0.1174, allocations: 353.7 kB / 0.4982 GB, free: 340 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.1174, allocations: 33.7 kB / 0.4983 GB, free: 300 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.1176, allocations: 260.6 kB / 0.4985 GB, free: 32 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.1177, allocations: 142.9 kB / 0.4987 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.381e-05/0.1178, allocations: 57.7 kB / 0.4987 GB, free: 15.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1179, allocations: 354.8 kB / 0.499 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002622/0.1182, allocations: 135.9 kB / 0.4992 GB, free: 15.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002706/0.1185, allocations: 178.3 kB / 0.4993 GB, free: 15.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00253/0.121, allocations: 0.6725 MB / 0.5 GB, free: 14.47 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1211, allocations: 4 kB / 0.5 GB, free: 14.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006693/0.1217, allocations: 433 kB / 0.5004 GB, free: 14.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.1218, allocations: 4 kB / 0.5004 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1218, allocations: 0 / 0.5004 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.1218, allocations: 11.73 kB / 0.5004 GB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003051/0.1221, allocations: 67.91 kB / 0.5005 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.1221, allocations: 4 kB / 0.5005 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001435/0.1223, allocations: 35.8 kB / 0.5005 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.454e-05/0.1223, allocations: 16 kB / 0.5006 GB, free: 13.91 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.0002333/0.1225, allocations: 185.6 kB / 0.5007 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.96e-05/0.1226, allocations: 43.72 kB / 0.5008 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007947/0.1234, allocations: 462.5 kB / 0.5012 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.1234, allocations: 8.031 kB / 0.5012 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.1234, allocations: 7.938 kB / 0.5012 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.1234, allocations: 3.984 kB / 0.5012 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00048/0.1239, allocations: 0.4972 MB / 0.5017 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1239, allocations: 0 / 0.5017 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002851/0.1242, allocations: 71.89 kB / 0.5018 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.1242, allocations: 0 / 0.5018 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.1243, allocations: 15.94 kB / 0.5018 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.1243, allocations: 0 / 0.5018 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1243, allocations: 0 / 0.5018 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000705/0.125, allocations: 457.4 kB / 0.5022 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.704e-05/0.1251, allocations: 120.7 kB / 0.5024 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.491e-05/0.1251, allocations: 19.94 kB / 0.5024 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.1253, allocations: 11.98 kB / 0.5024 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.642e-05/0.1254, allocations: 31.7 kB / 0.5024 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.1254, allocations: 12 kB / 0.5024 GB, free: 11.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002296/0.1256, allocations: 259.1 kB / 0.5027 GB, free: 11.63 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1256, allocations: 0 / 0.5027 GB, free: 11.63 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002994/0.1259, allocations: 87.73 kB / 0.5028 GB, free: 11.54 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.001368/0.1273, allocations: 1.23 MB / 0.504 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006453/0.128, allocations: 363.4 kB / 0.5043 GB, free: 9.926 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.128, allocations: 0 / 0.5043 GB, free: 9.926 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000326/0.1283, allocations: 207.5 kB / 0.5045 GB, free: 9.723 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002402/0.1286, allocations: 23.91 kB / 0.5045 GB, free: 9.695 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004543/0.1331, allocations: 3.808 MB / 0.5082 GB, free: 5.785 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.1335, allocations: 0.8473 MB / 0.5091 GB, free: 4.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001151/0.1337, allocations: 34.22 kB / 0.5091 GB, free: 4.875 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/0.1339, allocations: 171.4 kB / 0.5093 GB, free: 4.707 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1339, allocations: 0 / 0.5093 GB, free: 4.707 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2036/0.3375, allocations: 6.458 MB / 0.5156 GB, free: 27.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.234/8.571, allocations: 11.45 kB / 0.5156 GB, free: 27.68 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)