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.006728/0.006728, allocations: 97.62 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.001754/0.001754, allocations: 202.1 kB / 16.68 MB, free: 5.969 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.433/1.433, 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.301/0.301, allocations: 28.81 MB / 319.4 MB, free: 5.668 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 66.08 kB / 443.8 MB, free: 36.88 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0834/0.08528, allocations: 56.42 MB / 0.4885 GB, free: 8.945 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.002707/0.08803, allocations: 2.382 MB / 0.4908 GB, free: 7.039 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007725/0.08882, allocations: 432.3 kB / 0.4912 GB, free: 6.699 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.08895, allocations: 4.531 kB / 0.4912 GB, free: 6.699 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.0891, allocations: 47.7 kB / 0.4913 GB, free: 6.656 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001341/0.08924, allocations: 31.84 kB / 0.4913 GB, free: 6.629 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003856/0.08963, allocations: 148.6 kB / 0.4915 GB, free: 6.508 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002495/0.08989, allocations: 318.7 kB / 0.4918 GB, free: 6.316 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.09015, allocations: 198.4 kB / 0.492 GB, free: 6.199 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.964e-05/0.09026, allocations: 135.1 kB / 0.4921 GB, free: 6.109 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.09042, allocations: 179.4 kB / 0.4923 GB, free: 5.965 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.694e-05/0.09048, allocations: 34.84 kB / 0.4923 GB, free: 5.965 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001204/0.09061, allocations: 58.66 kB / 0.4923 GB, free: 5.953 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.09072, allocations: 138.5 kB / 0.4925 GB, free: 5.852 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.09085, allocations: 205.8 kB / 0.4927 GB, free: 5.688 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003578/0.09121, allocations: 442.3 kB / 0.4931 GB, free: 5.352 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.09122, allocations: 0 / 0.4931 GB, free: 5.352 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.09123, allocations: 0 / 0.4931 GB, free: 5.352 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.09124, allocations: 0 / 0.4931 GB, free: 5.352 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.00105/0.0923, allocations: 0.7979 MB / 0.4939 GB, free: 4.656 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.09234, allocations: 8.969 kB / 0.4939 GB, free: 4.656 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.412e-05/0.09244, allocations: 87.27 kB / 0.494 GB, free: 4.578 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.289e-05/0.09253, allocations: 69.34 kB / 0.494 GB, free: 4.539 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.09268, allocations: 285.6 kB / 0.4943 GB, free: 4.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.09272, allocations: 31.94 kB / 0.4943 GB, free: 4.238 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.128e-05/0.09278, allocations: 49.78 kB / 0.4944 GB, free: 4.219 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000624/0.09341, allocations: 466 kB / 0.4948 GB, free: 3.766 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.09344, allocations: 3.938 kB / 0.4948 GB, free: 3.762 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.09348, allocations: 20 kB / 0.4948 GB, free: 3.742 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.09349, allocations: 12 kB / 0.4949 GB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005894/0.09408, allocations: 379.7 kB / 0.4952 GB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.09526, allocations: 1.153 MB / 0.4963 GB, free: 2.152 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.09636, allocations: 0.5128 MB / 0.4969 GB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002662/0.09663, allocations: 177.7 kB / 0.497 GB, free: 1.441 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.461e-05/0.0967, allocations: 40.97 kB / 0.4971 GB, free: 1.402 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000417/0.09712, allocations: 268.7 kB / 0.4973 GB, free: 1.121 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.114e-06/0.09714, allocations: 0 / 0.4973 GB, free: 1.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=41): time 0.0009155/0.09806, allocations: 0.5712 MB / 0.4979 GB, free: 0.543 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.0981, allocations: 81.11 kB / 0.498 GB, free: 456 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002386/0.09834, allocations: 345.7 kB / 0.4983 GB, free: 100 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.09837, allocations: 41.69 kB / 0.4983 GB, free: 52 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.09857, allocations: 248.6 kB / 0.4986 GB, free: 15.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.09869, allocations: 142.8 kB / 0.4987 GB, free: 15.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.618e-05/0.0988, allocations: 61.7 kB / 0.4988 GB, free: 15.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.09897, allocations: 350.8 kB / 0.4991 GB, free: 15.24 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003025/0.09928, allocations: 143.9 kB / 0.4992 GB, free: 15.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003282/0.09962, allocations: 186.2 kB / 0.4994 GB, free: 14.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002875/0.1025, allocations: 0.6688 MB / 0.5001 GB, free: 14.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1025, allocations: 0 / 0.5001 GB, free: 14.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007969/0.1033, allocations: 433.1 kB / 0.5005 GB, free: 13.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.1034, allocations: 8 kB / 0.5005 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1034, allocations: 0 / 0.5005 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.1034, allocations: 3.938 kB / 0.5005 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000339/0.1037, allocations: 71.91 kB / 0.5005 GB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.1038, allocations: 3.984 kB / 0.5006 GB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.1039, allocations: 47.8 kB / 0.5006 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.482e-05/0.104, 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.0002685/0.1042, allocations: 181.7 kB / 0.5008 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.048e-05/0.1043, allocations: 39.72 kB / 0.5008 GB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009216/0.1052, allocations: 462.3 kB / 0.5013 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.1053, allocations: 7.938 kB / 0.5013 GB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1053, allocations: 0 / 0.5013 GB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.1053, allocations: 3.984 kB / 0.5013 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005551/0.1058, allocations: 0.4972 MB / 0.5018 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.1059, allocations: 3.984 kB / 0.5018 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.1062, allocations: 67.91 kB / 0.5018 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.1062, allocations: 4 kB / 0.5018 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.1062, allocations: 4 kB / 0.5018 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.1062, allocations: 7.938 kB / 0.5018 GB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1062, allocations: 4 kB / 0.5018 GB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008216/0.1071, allocations: 461.3 kB / 0.5023 GB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.586e-05/0.1072, allocations: 120.7 kB / 0.5024 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.095e-05/0.1072, allocations: 11.98 kB / 0.5024 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.1074, allocations: 23.94 kB / 0.5024 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.985e-05/0.1075, allocations: 31.7 kB / 0.5025 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/0.1075, allocations: 8 kB / 0.5025 GB, free: 11.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002769/0.1078, allocations: 255.1 kB / 0.5027 GB, free: 11.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.024e-06/0.1078, allocations: 0 / 0.5027 GB, free: 11.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003306/0.1081, allocations: 99.61 kB / 0.5028 GB, free: 11.3 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.0016/0.1098, allocations: 1.218 MB / 0.504 GB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007434/0.1105, allocations: 375.4 kB / 0.5044 GB, free: 9.684 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1105, allocations: 0 / 0.5044 GB, free: 9.684 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000368/0.1109, allocations: 195.5 kB / 0.5045 GB, free: 9.492 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.1112, allocations: 31.69 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.00519/0.1164, allocations: 3.804 MB / 0.5083 GB, free: 5.547 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004993/0.1169, allocations: 0.859 MB / 0.5091 GB, free: 4.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.117, allocations: 22.3 kB / 0.5091 GB, free: 4.637 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002352/0.1173, allocations: 175.4 kB / 0.5093 GB, free: 4.465 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1173, allocations: 0 / 0.5093 GB, free: 4.465 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3416/0.4589, allocations: 6.46 MB / 0.5156 GB, free: 14.08 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.52, allocations: 16.66 kB / 0.5156 GB, free: 14.07 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM_fmu --startTime=1949 --stopTime=1978 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM.fmu > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1)