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.001899/0.001899, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002426/0.002426, allocations: 221.9 kB / 22.26 MB, free: 5.125 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.551/1.551, allocations: 230.6 MB / 256 MB, free: 7.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo): time 0.2/0.2, allocations: 29.22 MB / 341.7 MB, free: 5.762 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 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.002054/0.002054, allocations: 63.91 kB / 478.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3271, allocations: 60.8 MB / 0.5265 GB, free: 7.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003137/0.3303, allocations: 2.399 MB / 0.5289 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001133/0.3314, allocations: 452.8 kB / 0.5293 GB, free: 5.941 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001272/0.3315, allocations: 8.844 kB / 0.5293 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.3317, allocations: 45.64 kB / 0.5294 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.3318, allocations: 29.59 kB / 0.5294 GB, free: 5.883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004575/0.3323, allocations: 155.1 kB / 0.5295 GB, free: 5.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004563/0.3327, allocations: 318.3 kB / 0.5298 GB, free: 5.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002322/0.333, allocations: 167.1 kB / 0.53 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.3331, allocations: 140.3 kB / 0.5301 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.3332, allocations: 178.2 kB / 0.5303 GB, free: 5.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.2e-05/0.3333, allocations: 33.97 kB / 0.5303 GB, free: 5.387 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001326/0.3334, allocations: 66.38 kB / 0.5304 GB, free: 5.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.3336, allocations: 135.9 kB / 0.5305 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.3337, allocations: 210 kB / 0.5307 GB, free: 5.152 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005614/0.3342, allocations: 438.4 kB / 0.5311 GB, free: 4.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3342, allocations: 1.125 kB / 0.5311 GB, free: 4.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3342, allocations: 3.938 kB / 0.5311 GB, free: 4.922 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.3343, allocations: 0 / 0.5311 GB, free: 4.922 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.001074/0.3353, allocations: 0.7178 MB / 0.5318 GB, free: 4.391 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.3354, allocations: 10.45 kB / 0.5319 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.3355, allocations: 89.34 kB / 0.5319 GB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.3356, allocations: 69.22 kB / 0.532 GB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.3358, allocations: 226.5 kB / 0.5322 GB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.64e-05/0.3358, allocations: 40.61 kB / 0.5323 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.64e-05/0.3359, allocations: 41.12 kB / 0.5323 GB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008453/0.3367, allocations: 472.1 kB / 0.5328 GB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.3367, allocations: 3.938 kB / 0.5328 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.3367, allocations: 16.22 kB / 0.5328 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.3368, allocations: 12.09 kB / 0.5328 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006394/0.3374, allocations: 378.4 kB / 0.5331 GB, free: 3.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.3389, allocations: 1.115 MB / 0.5342 GB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/0.3402, allocations: 494.7 kB / 0.5347 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.3404, allocations: 162.8 kB / 0.5349 GB, free: 2.879 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.946e-05/0.3405, allocations: 42.06 kB / 0.5349 GB, free: 2.871 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006093/0.3411, allocations: 267.3 kB / 0.5352 GB, free: 2.742 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.583e-06/0.3411, allocations: 1.375 kB / 0.5352 GB, free: 2.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.0009851/0.3421, allocations: 0.566 MB / 0.5357 GB, free: 2.547 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.3421, allocations: 83.94 kB / 0.5358 GB, free: 2.453 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003268/0.3425, allocations: 347.3 kB / 0.5361 GB, free: 2.277 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.3425, allocations: 37.3 kB / 0.5362 GB, free: 2.238 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.3426, allocations: 254.4 kB / 0.5364 GB, free: 2.035 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002391/0.3428, allocations: 147 kB / 0.5365 GB, free: 1.918 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.468e-05/0.3429, allocations: 60.53 kB / 0.5366 GB, free: 1.875 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.311e-05/0.343, allocations: 353.8 kB / 0.5369 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002515/0.3432, allocations: 145.1 kB / 0.5371 GB, free: 1.473 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.3435, allocations: 188.8 kB / 0.5373 GB, free: 1.371 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00246/0.3459, allocations: 0.6688 MB / 0.5379 GB, free: 1.059 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3459, allocations: 5.125 kB / 0.5379 GB, free: 1.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006011/0.3465, allocations: 434.1 kB / 0.5383 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.3465, allocations: 5.312 kB / 0.5383 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3466, allocations: 1.469 kB / 0.5383 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.3466, allocations: 5.469 kB / 0.5383 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003809/0.347, allocations: 65.66 kB / 0.5384 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.347, allocations: 3.406 kB / 0.5384 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001531/0.3471, allocations: 35.19 kB / 0.5384 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.3471, allocations: 8.719 kB / 0.5384 GB, free: 0.8125 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.000229/0.3474, allocations: 194.4 kB / 0.5386 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.781e-05/0.3474, allocations: 38.48 kB / 0.5387 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007506/0.3482, allocations: 471.8 kB / 0.5391 GB, free: 396 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.3482, allocations: 8.938 kB / 0.5391 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.3482, allocations: 0 / 0.5391 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.3482, allocations: 1.156 kB / 0.5391 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004043/0.3486, allocations: 483.9 kB / 0.5396 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3486, allocations: 0 / 0.5396 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003576/0.349, allocations: 63.34 kB / 0.5396 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.349, allocations: 1.719 kB / 0.5396 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.349, allocations: 11.78 kB / 0.5397 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.349, allocations: 9.656 kB / 0.5397 GB, free: 0 / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.349, allocations: 1.062 kB / 0.5397 GB, free: 0 / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007278/0.3497, allocations: 461.4 kB / 0.5401 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.387e-05/0.3498, allocations: 40.28 kB / 0.5401 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.552e-05/0.3498, allocations: 16.05 kB / 0.5402 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.35, allocations: 17.34 kB / 0.5402 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.691e-05/0.35, allocations: 33 kB / 0.5402 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.35, allocations: 13.38 kB / 0.5402 GB, free: 15.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002412/0.3503, allocations: 251.8 kB / 0.5405 GB, free: 15.53 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3503, allocations: 0 / 0.5405 GB, free: 15.53 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004456/0.3507, allocations: 93.61 kB / 0.5406 GB, free: 15.49 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.001495/0.3522, allocations: 1.218 MB / 0.5417 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008526/0.3531, allocations: 370.9 kB / 0.5421 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3531, allocations: 0 / 0.5421 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003182/0.3534, allocations: 180 kB / 0.5423 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.3537, allocations: 27 kB / 0.5423 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005575/0.3592, allocations: 3.797 MB / 0.546 GB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005689/0.3598, allocations: 0.8522 MB / 0.5468 GB, free: 11.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.3599, allocations: 25.3 kB / 0.5469 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002351/0.3602, allocations: 172.5 kB / 0.547 GB, free: 10.99 MB / 398.1 MB Notification: Performance of SimCode: time 1.422e-06/0.3602, allocations: 0 / 0.547 GB, free: 10.99 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03794/0.3981, allocations: 6.775 MB / 0.5536 GB, free: 5.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.22, allocations: 4.062 kB / 0.5536 GB, free: 5.234 MB / 398.1 MB " [Timeout remaining time 648] (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: 15.19641268200212] Failed to read output from testmodel.py, exit status != 0: 12.325666859000194 12.349054801 12.011521725 Calling exit ...