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.006456/0.006456, allocations: 99.56 kB / 15.73 MB, free: 6.422 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.001519/0.001519, allocations: 195.3 kB / 16.67 MB, free: 6.34 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2706/0.2706, allocations: 28.81 MB / 319.3 MB, free: 5.625 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.25 kB / 443.8 MB, free: 36.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08878/0.09012, allocations: 56.41 MB / 0.4885 GB, free: 8.867 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.00316/0.09332, allocations: 2.376 MB / 0.4908 GB, free: 6.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.09454, allocations: 428 kB / 0.4912 GB, free: 6.633 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002995/0.09487, allocations: 5.5 kB / 0.4912 GB, free: 6.633 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001852/0.09512, allocations: 46.2 kB / 0.4913 GB, free: 6.59 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002265/0.09536, allocations: 35.75 kB / 0.4913 GB, free: 6.559 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005676/0.09594, allocations: 141.9 kB / 0.4914 GB, free: 6.445 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003968/0.09635, allocations: 321.8 kB / 0.4918 GB, free: 6.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003327/0.09669, allocations: 203.1 kB / 0.4919 GB, free: 6.129 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.09685, allocations: 139.5 kB / 0.4921 GB, free: 6.035 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.09706, allocations: 175 kB / 0.4922 GB, free: 5.895 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.354e-05/0.09713, allocations: 35.12 kB / 0.4923 GB, free: 5.895 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.09728, allocations: 66.75 kB / 0.4923 GB, free: 5.875 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.0974, allocations: 133.2 kB / 0.4925 GB, free: 5.777 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.09754, allocations: 213.6 kB / 0.4927 GB, free: 5.605 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004089/0.09795, allocations: 430.1 kB / 0.4931 GB, free: 5.281 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.09797, allocations: 1.25 kB / 0.4931 GB, free: 5.281 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.09797, allocations: 0 / 0.4931 GB, free: 5.281 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.834e-05/0.098, allocations: 0 / 0.4931 GB, free: 5.281 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.001196/0.0992, allocations: 0.7781 MB / 0.4938 GB, free: 4.609 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.09925, allocations: 9.906 kB / 0.4939 GB, free: 4.609 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001141/0.09937, allocations: 97.78 kB / 0.494 GB, free: 4.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.0995, allocations: 61.78 kB / 0.494 GB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000172/0.09968, allocations: 277 kB / 0.4943 GB, free: 4.207 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.676e-05/0.09973, allocations: 40.41 kB / 0.4943 GB, free: 4.188 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.993e-05/0.09978, allocations: 41 kB / 0.4944 GB, free: 4.176 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006746/0.1005, allocations: 470.9 kB / 0.4948 GB, free: 3.801 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.1005, allocations: 3.938 kB / 0.4948 GB, free: 3.797 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.1005, allocations: 16 kB / 0.4948 GB, free: 3.781 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.1005, allocations: 12 kB / 0.4948 GB, free: 3.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005516/0.1011, allocations: 383.7 kB / 0.4952 GB, free: 3.395 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.1025, allocations: 1.145 MB / 0.4963 GB, free: 2.195 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009994/0.1035, allocations: 0.513 MB / 0.4968 GB, free: 1.664 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000249/0.1037, allocations: 173.7 kB / 0.497 GB, free: 1.488 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.184e-05/0.1038, allocations: 32.98 kB / 0.497 GB, free: 1.457 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003916/0.1042, allocations: 272.7 kB / 0.4973 GB, free: 1.172 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.314e-06/0.1042, allocations: 3.938 kB / 0.4973 GB, free: 1.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=41): time 0.0008701/0.1051, allocations: 0.5516 MB / 0.4978 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.1052, allocations: 101 kB / 0.4979 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002666/0.1054, allocations: 345.7 kB / 0.4982 GB, free: 148 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.1055, allocations: 33.7 kB / 0.4983 GB, free: 108 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.1056, allocations: 256.2 kB / 0.4985 GB, free: 15.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.1058, allocations: 138.1 kB / 0.4986 GB, free: 15.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.717e-05/0.1059, allocations: 61.69 kB / 0.4987 GB, free: 15.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.106, allocations: 346.8 kB / 0.499 GB, free: 15.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002685/0.1063, allocations: 143.9 kB / 0.4992 GB, free: 15.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002678/0.1065, allocations: 178.3 kB / 0.4993 GB, free: 14.97 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002529/0.1091, allocations: 0.6727 MB / 0.5 GB, free: 14.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.1091, allocations: 4 kB / 0.5 GB, free: 14.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007133/0.1098, allocations: 428.8 kB / 0.5004 GB, free: 13.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.1099, allocations: 8 kB / 0.5004 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.1099, allocations: 0 / 0.5004 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.1099, allocations: 7.875 kB / 0.5004 GB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003115/0.1102, allocations: 71.91 kB / 0.5005 GB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.1102, allocations: 0 / 0.5005 GB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.1104, allocations: 27.86 kB / 0.5005 GB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.1105, allocations: 16 kB / 0.5005 GB, free: 13.73 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.0002788/0.1108, allocations: 185.7 kB / 0.5007 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.833e-05/0.1108, allocations: 39.44 kB / 0.5008 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007868/0.1116, allocations: 466.3 kB / 0.5012 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.1117, allocations: 7.938 kB / 0.5012 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1117, allocations: 0 / 0.5012 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.1117, allocations: 0 / 0.5012 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005198/0.1122, allocations: 0.4972 MB / 0.5017 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.1122, allocations: 4 kB / 0.5017 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002891/0.1125, allocations: 67.91 kB / 0.5018 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-06/0.1125, allocations: 4 kB / 0.5018 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.1126, allocations: 4 kB / 0.5018 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.1126, allocations: 11.94 kB / 0.5018 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.1126, allocations: 0 / 0.5018 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006923/0.1133, allocations: 461 kB / 0.5022 GB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.151e-05/0.1134, allocations: 120.5 kB / 0.5023 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.08e-05/0.1134, allocations: 15.92 kB / 0.5024 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.1136, allocations: 15.94 kB / 0.5024 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.09e-05/0.1137, allocations: 35.7 kB / 0.5024 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.1137, allocations: 12 kB / 0.5024 GB, free: 11.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002334/0.1139, allocations: 255.1 kB / 0.5027 GB, free: 11.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1139, allocations: 0 / 0.5027 GB, free: 11.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003514/0.1143, allocations: 87.59 kB / 0.5027 GB, free: 11.38 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.001304/0.1156, allocations: 1.226 MB / 0.5039 GB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006394/0.1163, allocations: 367.4 kB / 0.5043 GB, free: 9.758 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1163, allocations: 0 / 0.5043 GB, free: 9.758 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003041/0.1166, allocations: 203.7 kB / 0.5045 GB, free: 9.559 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.1169, allocations: 25.56 kB / 0.5045 GB, free: 9.527 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004606/0.1215, allocations: 3.789 MB / 0.5082 GB, free: 5.633 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003706/0.1219, allocations: 0.855 MB / 0.509 GB, free: 4.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.122, allocations: 26.3 kB / 0.5091 GB, free: 4.723 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002087/0.1223, allocations: 171.5 kB / 0.5092 GB, free: 4.555 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.1223, allocations: 3.938 kB / 0.5092 GB, free: 4.551 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02485/0.1471, allocations: 6.552 MB / 0.5156 GB, free: 14.08 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.971/8.118, allocations: 12.59 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)