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.002151/0.002151, allocations: 108 kB / 15.6 MB, free: 132 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.002957/0.002958, allocations: 193.1 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.848/2.848, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.9246/0.9246, allocations: 28.81 MB / 319.2 MB, free: 5.691 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002838/0.002838, allocations: 59.91 kB / 386.7 MB, free: 3.535 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.834/0.837, allocations: 56.42 MB / 443.1 MB, free: 39.69 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.009945/0.847, allocations: 2.366 MB / 445.5 MB, free: 38.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006379/0.8535, allocations: 429.2 kB / 445.9 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007746/0.8543, allocations: 5.969 kB / 445.9 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004668/0.855, allocations: 48.67 kB / 446 MB, free: 38.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000641/0.8557, allocations: 32.73 kB / 446 MB, free: 38.33 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001352/0.857, allocations: 141.6 kB / 446.2 MB, free: 38.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001018/0.8581, allocations: 313.6 kB / 446.5 MB, free: 38.29 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007812/0.8589, allocations: 212.7 kB / 446.7 MB, free: 38.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003591/0.8593, allocations: 133.1 kB / 446.8 MB, free: 38.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005176/0.8598, allocations: 173.9 kB / 447 MB, free: 38.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002301/0.8601, allocations: 34.53 kB / 447 MB, free: 38.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000327/0.8604, allocations: 58.33 kB / 447.1 MB, free: 38.17 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003282/0.8608, allocations: 138.3 kB / 447.2 MB, free: 38.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000366/0.8612, allocations: 215.7 kB / 447.4 MB, free: 38.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.8622, allocations: 399.9 kB / 447.8 MB, free: 37.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.8623, allocations: 0 / 447.8 MB, free: 37.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.089e-06/0.8623, allocations: 0 / 447.8 MB, free: 37.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.991e-05/0.8624, allocations: 0 / 447.8 MB, free: 37.93 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.006871/0.8692, allocations: 0.7857 MB / 448.6 MB, free: 37.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.61e-05/0.8694, allocations: 8.719 kB / 448.6 MB, free: 37.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003418/0.8697, allocations: 87.38 kB / 448.7 MB, free: 37.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002482/0.87, allocations: 63.38 kB / 448.7 MB, free: 37.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.8704, allocations: 292.5 kB / 449 MB, free: 37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.176e-05/0.8705, allocations: 30.94 kB / 449 MB, free: 36.99 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.8706, allocations: 45.09 kB / 449.1 MB, free: 36.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.8721, allocations: 472.4 kB / 449.6 MB, free: 36.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3e-05/0.8721, allocations: 3.938 kB / 449.6 MB, free: 36.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-05/0.8722, allocations: 18.91 kB / 449.6 MB, free: 36.76 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.873e-05/0.8723, allocations: 11.41 kB / 449.6 MB, free: 36.76 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.8735, allocations: 375.7 kB / 450 MB, free: 36.67 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003/0.8765, allocations: 1.166 MB / 451.1 MB, free: 36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001749/0.8783, allocations: 0.5155 MB / 451.6 MB, free: 35.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004427/0.8787, allocations: 180.1 kB / 451.8 MB, free: 35.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.75e-05/0.8789, allocations: 34.97 kB / 451.8 MB, free: 35.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007959/0.8797, allocations: 270.7 kB / 452.1 MB, free: 35.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 5.46e-06/0.8797, allocations: 0 / 452.1 MB, free: 35.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=41): time 0.00185/0.8816, allocations: 0.5659 MB / 452.7 MB, free: 35.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.076e-05/0.8817, allocations: 89.3 kB / 452.8 MB, free: 35.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007501/0.8824, allocations: 348.9 kB / 453.1 MB, free: 35.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.336e-05/0.8825, allocations: 36.14 kB / 453.1 MB, free: 35.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003349/0.8829, allocations: 252.3 kB / 453.4 MB, free: 34.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002162/0.8831, allocations: 127.9 kB / 453.5 MB, free: 34.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001539/0.8833, allocations: 63.31 kB / 453.6 MB, free: 34.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.8835, allocations: 354.3 kB / 453.9 MB, free: 34.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000391/0.8839, allocations: 137.5 kB / 454.1 MB, free: 34.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004571/0.8844, allocations: 184.6 kB / 454.2 MB, free: 34.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004026/0.8884, allocations: 0.6803 MB / 454.9 MB, free: 34.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.325e-05/0.8885, allocations: 0 / 454.9 MB, free: 34.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001655/0.8902, allocations: 429.9 kB / 455.3 MB, free: 33.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.224e-05/0.8902, allocations: 5.875 kB / 455.3 MB, free: 33.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.8903, allocations: 0 / 455.3 MB, free: 33.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.561e-05/0.8903, allocations: 10.78 kB / 455.3 MB, free: 33.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004523/0.8908, allocations: 67.23 kB / 455.4 MB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.834e-05/0.8908, allocations: 3.094 kB / 455.4 MB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003574/0.8912, allocations: 36.16 kB / 455.5 MB, free: 33.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.966e-05/0.8912, allocations: 8.75 kB / 455.5 MB, free: 33.94 MB / 366.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.0006521/0.8919, allocations: 182.3 kB / 455.6 MB, free: 33.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/0.8921, allocations: 38.31 kB / 455.7 MB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001446/0.8936, allocations: 457.3 kB / 456.1 MB, free: 33.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-05/0.8936, allocations: 9.031 kB / 456.1 MB, free: 33.6 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.898e-05/0.8936, allocations: 5.672 kB / 456.1 MB, free: 33.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.8936, allocations: 0 / 456.1 MB, free: 33.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.8948, allocations: 0.5042 MB / 456.6 MB, free: 33.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.606e-05/0.8949, allocations: 7.094 kB / 456.6 MB, free: 33.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004278/0.8953, allocations: 62.02 kB / 456.7 MB, free: 33.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.621e-05/0.8953, allocations: 6.719 kB / 456.7 MB, free: 33.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.406e-05/0.8954, allocations: 10.17 kB / 456.7 MB, free: 33.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.576e-05/0.8954, allocations: 10.56 kB / 456.7 MB, free: 33.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.8954, allocations: 3.938 kB / 456.7 MB, free: 33.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002104/0.8975, allocations: 462.1 kB / 457.2 MB, free: 33.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.8977, allocations: 112.2 kB / 457.3 MB, free: 32.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.663e-05/0.8978, allocations: 10.84 kB / 457.3 MB, free: 32.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.898, allocations: 16.94 kB / 457.3 MB, free: 32.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/0.8982, allocations: 27.81 kB / 457.4 MB, free: 32.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.531e-05/0.8982, allocations: 12.12 kB / 457.4 MB, free: 32.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004458/0.8987, allocations: 256.8 kB / 457.6 MB, free: 32.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.8987, allocations: 0 / 457.6 MB, free: 32.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000603/0.8993, allocations: 92.53 kB / 457.7 MB, free: 32.76 MB / 366.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.002112/0.9014, allocations: 1.229 MB / 458.9 MB, free: 31.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.9028, allocations: 385.5 kB / 459.3 MB, free: 31.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.9028, allocations: 0 / 459.3 MB, free: 31.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005046/0.9033, allocations: 201.6 kB / 459.5 MB, free: 31.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005478/0.9039, allocations: 29.91 kB / 459.5 MB, free: 31.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009356/0.9132, allocations: 3.806 MB / 463.3 MB, free: 29.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008736/0.9142, allocations: 0.8637 MB / 464.2 MB, free: 28.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002267/0.9144, allocations: 29.41 kB / 464.2 MB, free: 28.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003504/0.9148, allocations: 168.7 kB / 464.4 MB, free: 28.75 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.9148, allocations: 0 / 464.4 MB, free: 28.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1252/1.04, allocations: 6.293 MB / 470.7 MB, free: 28.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.88/16.92, allocations: 17.16 kB / 470.7 MB, free: 28.01 MB / 366.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)