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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 110.5 kB / 16.46 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 215.2 kB / 19.43 MB, free: 3.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.537/1.537, allocations: 230.6 MB / 252.8 MB, free: 9.117 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1969/0.1969, allocations: 29.22 MB / 338.1 MB, free: 6.98 MB / 270.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: SystemDynamics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 67.89 kB / 473.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3306, allocations: 60.75 MB / 0.5214 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.002964/0.3336, allocations: 2.4 MB / 0.5238 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008217/0.3344, allocations: 443.8 kB / 0.5242 GB, free: 5.844 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.3345, allocations: 4.531 kB / 0.5242 GB, free: 5.844 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001195/0.3346, allocations: 47.03 kB / 0.5242 GB, free: 5.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001326/0.3348, allocations: 32.34 kB / 0.5243 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.3352, allocations: 152 kB / 0.5244 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002999/0.3355, allocations: 313.4 kB / 0.5247 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002549/0.3357, allocations: 163.1 kB / 0.5249 GB, free: 5.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.3359, allocations: 144.3 kB / 0.525 GB, free: 5.402 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.336, allocations: 182.1 kB / 0.5252 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.691e-05/0.3361, allocations: 34.69 kB / 0.5252 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.3362, allocations: 66.31 kB / 0.5253 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.3364, allocations: 122.9 kB / 0.5254 GB, free: 5.227 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.3365, allocations: 217.6 kB / 0.5256 GB, free: 5.066 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004494/0.3369, allocations: 439.5 kB / 0.526 GB, free: 4.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3369, allocations: 0.6094 kB / 0.526 GB, free: 4.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3369, allocations: 0 / 0.526 GB, free: 4.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.337, allocations: 9.188 kB / 0.526 GB, free: 4.832 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.001185/0.3381, allocations: 0.7915 MB / 0.5268 GB, free: 4.203 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.3382, allocations: 10.91 kB / 0.5268 GB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001194/0.3383, allocations: 89.84 kB / 0.5269 GB, free: 4.133 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001796/0.3385, allocations: 68.2 kB / 0.527 GB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.3387, allocations: 288.1 kB / 0.5272 GB, free: 3.812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.198e-05/0.3387, allocations: 35.66 kB / 0.5273 GB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.043e-05/0.3388, allocations: 43.34 kB / 0.5273 GB, free: 3.785 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007359/0.3395, allocations: 474.5 kB / 0.5278 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.3395, allocations: 4.469 kB / 0.5278 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.401e-05/0.3396, allocations: 20.09 kB / 0.5278 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.3396, allocations: 12.81 kB / 0.5278 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007026/0.3403, allocations: 373.3 kB / 0.5281 GB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00145/0.3417, allocations: 1.15 MB / 0.5293 GB, free: 2.816 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.3429, allocations: 0.4903 MB / 0.5298 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/0.3432, allocations: 159.6 kB / 0.5299 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.881e-05/0.3433, allocations: 36.88 kB / 0.5299 GB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004695/0.3437, allocations: 276.5 kB / 0.5302 GB, free: 2.457 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.613e-06/0.3437, allocations: 1.438 kB / 0.5302 GB, free: 2.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001036/0.3448, allocations: 0.5584 MB / 0.5307 GB, free: 2.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.3448, allocations: 82.55 kB / 0.5308 GB, free: 2.176 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003244/0.3451, allocations: 351.5 kB / 0.5312 GB, free: 2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.3451, allocations: 38.42 kB / 0.5312 GB, free: 1.961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.3453, allocations: 258.7 kB / 0.5314 GB, free: 1.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.962e-05/0.3453, allocations: 138 kB / 0.5316 GB, free: 1.641 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.087e-05/0.3454, allocations: 62.06 kB / 0.5316 GB, free: 1.602 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.672e-05/0.3455, allocations: 349.6 kB / 0.532 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000256/0.3458, allocations: 146.3 kB / 0.5321 GB, free: 1.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002835/0.346, allocations: 188.7 kB / 0.5323 GB, free: 1.156 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002699/0.3487, allocations: 0.6644 MB / 0.5329 GB, free: 0.957 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.3487, allocations: 4.641 kB / 0.5329 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007179/0.3495, allocations: 427.9 kB / 0.5334 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.3495, allocations: 7.969 kB / 0.5334 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.3495, allocations: 2.172 kB / 0.5334 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.3495, allocations: 6.688 kB / 0.5334 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003085/0.3498, allocations: 74.67 kB / 0.5334 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.3498, allocations: 3.203 kB / 0.5334 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.35, allocations: 29.75 kB / 0.5335 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.421e-05/0.35, allocations: 16.23 kB / 0.5335 GB, free: 0.7539 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.0002368/0.3502, allocations: 185.1 kB / 0.5337 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.102e-05/0.3503, allocations: 42.64 kB / 0.5337 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008698/0.3512, allocations: 462.7 kB / 0.5341 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.3512, allocations: 8.062 kB / 0.5342 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.525e-06/0.3512, allocations: 1.781 kB / 0.5342 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.3512, allocations: 1.969 kB / 0.5342 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000506/0.3517, allocations: 0.5022 MB / 0.5346 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3517, allocations: 0.6562 kB / 0.5346 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002851/0.352, allocations: 73.23 kB / 0.5347 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.352, allocations: 5.375 kB / 0.5347 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.352, allocations: 7.922 kB / 0.5347 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.352, allocations: 7.25 kB / 0.5347 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.352, allocations: 0 / 0.5347 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007727/0.3528, allocations: 468.3 kB / 0.5352 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.487e-05/0.3529, allocations: 124.1 kB / 0.5353 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.708e-05/0.3529, allocations: 12.56 kB / 0.5353 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.3531, allocations: 17.7 kB / 0.5353 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.198e-05/0.3531, allocations: 27.81 kB / 0.5354 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-05/0.3532, allocations: 15.92 kB / 0.5354 GB, free: 15.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002414/0.3534, allocations: 249 kB / 0.5356 GB, free: 15.51 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3534, allocations: 0 / 0.5356 GB, free: 15.51 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003194/0.3537, allocations: 97.45 kB / 0.5357 GB, free: 15.47 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.001666/0.3554, allocations: 1.224 MB / 0.5369 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008357/0.3562, allocations: 359.4 kB / 0.5372 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3562, allocations: 3.938 kB / 0.5372 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003429/0.3566, allocations: 187.4 kB / 0.5374 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/0.3568, allocations: 24.47 kB / 0.5374 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005277/0.3621, allocations: 3.795 MB / 0.5412 GB, free: 11.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005449/0.3627, allocations: 0.8519 MB / 0.542 GB, free: 11.13 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001206/0.3628, allocations: 34.19 kB / 0.542 GB, free: 11.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002263/0.363, allocations: 167.8 kB / 0.5422 GB, free: 10.96 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.363, allocations: 0 / 0.5422 GB, free: 10.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03209/0.3951, allocations: 6.477 MB / 0.5485 GB, free: 6.289 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.516/8.911, allocations: 3.938 kB / 0.5485 GB, free: 6.285 MB / 398.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.807418184820563] Failed to read output from testmodel.py, exit status != 0: 8.997115464881063 9.022212228 8.680249778 Calling exit ...