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.001225/0.001225, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001347/0.001347, allocations: 212.1 kB / 22.24 MB, free: 5.262 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.357/1.357, allocations: 230.6 MB / 256 MB, free: 7.801 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.1726/0.1726, allocations: 29.23 MB / 341.7 MB, free: 5.609 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.001947/0.001947, allocations: 67.91 kB / 478.3 MB, free: 444 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3058, allocations: 60.79 MB / 0.5265 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.002958/0.3088, allocations: 2.191 MB / 0.5286 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009334/0.3097, allocations: 442.7 kB / 0.529 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.3098, allocations: 8.812 kB / 0.529 GB, free: 6.047 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.3099, allocations: 49.39 kB / 0.5291 GB, free: 6.012 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001323/0.3101, allocations: 29.66 kB / 0.5291 GB, free: 5.988 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004692/0.3105, allocations: 147.3 kB / 0.5292 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003151/0.3109, allocations: 322.6 kB / 0.5296 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002524/0.3111, allocations: 146 kB / 0.5297 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.3112, allocations: 141.1 kB / 0.5298 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.3114, allocations: 154.2 kB / 0.53 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.738e-05/0.3115, allocations: 34.34 kB / 0.53 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.3116, allocations: 71.16 kB / 0.5301 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.3118, allocations: 130.9 kB / 0.5302 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.3119, allocations: 166 kB / 0.5304 GB, free: 5.348 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000446/0.3123, allocations: 445 kB / 0.5308 GB, free: 5.121 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3123, allocations: 1.438 kB / 0.5308 GB, free: 5.121 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3123, allocations: 0 / 0.5308 GB, free: 5.121 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.136e-06/0.3123, allocations: 0 / 0.5308 GB, free: 5.121 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.001081/0.3134, allocations: 0.7258 MB / 0.5315 GB, free: 4.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3135, allocations: 10.12 kB / 0.5315 GB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001035/0.3136, allocations: 86.19 kB / 0.5316 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.3137, allocations: 69.09 kB / 0.5316 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.3139, allocations: 225.6 kB / 0.5319 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.3139, allocations: 36.44 kB / 0.5319 GB, free: 4.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.917e-05/0.3139, allocations: 50.22 kB / 0.5319 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007151/0.3147, allocations: 463.8 kB / 0.5324 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.3147, allocations: 5.281 kB / 0.5324 GB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.982e-05/0.3147, allocations: 20.44 kB / 0.5324 GB, free: 4.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.3147, allocations: 10.75 kB / 0.5324 GB, free: 4.027 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006502/0.3154, allocations: 373.4 kB / 0.5328 GB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.3167, allocations: 1.04 MB / 0.5338 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.3178, allocations: 493.5 kB / 0.5343 GB, free: 3.145 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/0.318, allocations: 162.4 kB / 0.5344 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.792e-05/0.3181, allocations: 37.06 kB / 0.5345 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004633/0.3186, allocations: 270.5 kB / 0.5347 GB, free: 2.953 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.603e-06/0.3186, allocations: 0 / 0.5347 GB, free: 2.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.0009862/0.3196, allocations: 0.5625 MB / 0.5353 GB, free: 2.762 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.3196, allocations: 90.75 kB / 0.5353 GB, free: 2.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003333/0.3199, allocations: 348.9 kB / 0.5357 GB, free: 2.488 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.32, allocations: 37.94 kB / 0.5357 GB, free: 2.449 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.3201, allocations: 259.3 kB / 0.536 GB, free: 2.242 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.13e-05/0.3202, allocations: 141.3 kB / 0.5361 GB, free: 2.129 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.48e-05/0.3202, allocations: 58.67 kB / 0.5362 GB, free: 2.094 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.302e-05/0.3203, allocations: 349.8 kB / 0.5365 GB, free: 1.766 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.3206, allocations: 146.3 kB / 0.5366 GB, free: 1.727 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002562/0.3208, allocations: 185.2 kB / 0.5368 GB, free: 1.641 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002278/0.3231, allocations: 0.674 MB / 0.5375 GB, free: 1.324 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3231, allocations: 0 / 0.5375 GB, free: 1.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006268/0.3237, allocations: 430.5 kB / 0.5379 GB, free: 1.129 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.3237, allocations: 5.906 kB / 0.5379 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.3237, allocations: 1.469 kB / 0.5379 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.3238, allocations: 9.359 kB / 0.5379 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002705/0.324, allocations: 69.97 kB / 0.538 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.324, allocations: 2.688 kB / 0.538 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001331/0.3242, allocations: 27.66 kB / 0.538 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.3242, allocations: 12 kB / 0.538 GB, free: 1.082 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.0001914/0.3244, allocations: 186.8 kB / 0.5382 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.61e-05/0.3244, allocations: 43.22 kB / 0.5382 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007129/0.3251, allocations: 465.2 kB / 0.5387 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.3252, allocations: 11.84 kB / 0.5387 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3252, allocations: 1.375 kB / 0.5387 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.3252, allocations: 7.984 kB / 0.5387 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004061/0.3256, allocations: 447.8 kB / 0.5391 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.3256, allocations: 1.344 kB / 0.5391 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002576/0.3258, allocations: 66.34 kB / 0.5392 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3258, allocations: 2.281 kB / 0.5392 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.028e-05/0.3259, allocations: 14.52 kB / 0.5392 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.3259, allocations: 6.656 kB / 0.5392 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3259, allocations: 0 / 0.5392 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006288/0.3265, allocations: 473.7 kB / 0.5396 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.364e-05/0.3265, allocations: 43.64 kB / 0.5397 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.3266, allocations: 6.75 kB / 0.5397 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.3267, allocations: 22.02 kB / 0.5397 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.549e-05/0.3268, allocations: 25.98 kB / 0.5397 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.3268, allocations: 8.125 kB / 0.5397 GB, free: 15.99 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002461/0.3271, allocations: 256.7 kB / 0.54 GB, free: 15.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3271, allocations: 0 / 0.54 GB, free: 15.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003109/0.3274, allocations: 93.23 kB / 0.5401 GB, free: 15.79 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.001425/0.3288, allocations: 1.225 MB / 0.5413 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000637/0.3294, allocations: 358.7 kB / 0.5416 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3294, allocations: 0 / 0.5416 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003204/0.3298, allocations: 192.7 kB / 0.5418 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.33, allocations: 27.33 kB / 0.5418 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004745/0.3348, allocations: 3.783 MB / 0.5455 GB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002539/0.335, allocations: 246 kB / 0.5458 GB, free: 12.08 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001169/0.3351, allocations: 30.09 kB / 0.5458 GB, free: 12.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002205/0.3353, allocations: 172.2 kB / 0.546 GB, free: 11.91 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3353, allocations: 4 kB / 0.546 GB, free: 11.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03345/0.3688, allocations: 6.986 MB / 0.5528 GB, free: 5.938 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.95, allocations: 10.58 kB / 0.5528 GB, free: 5.93 MB / 398.1 MB " [Timeout remaining time 649] (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: 13.56782279163599] Failed to read output from testmodel.py, exit status != 0: 11.055467340629548 11.079274149 10.762717629 Calling exit ...