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.001356/0.001356, allocations: 79.98 kB / 19.01 MB, free: 2.859 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.002163/0.002163, allocations: 154 kB / 22.25 MB, free: 5.105 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.413/1.413, allocations: 177.2 MB / 202.6 MB, free: 9.277 MB / 190.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.187/0.187, allocations: 21.8 MB / 280.8 MB, free: 10.96 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.002032/0.002032, allocations: 63.91 kB / 417.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2839, allocations: 60.77 MB / 478.2 MB, free: 12.87 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003552/0.2875, allocations: 2.189 MB / 480.4 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.2885, allocations: 446.3 kB / 480.8 MB, free: 10.83 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.2886, allocations: 4.719 kB / 480.8 MB, free: 10.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001328/0.2887, allocations: 47.33 kB / 480.9 MB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001487/0.2889, allocations: 27.06 kB / 480.9 MB, free: 10.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004844/0.2894, allocations: 151.5 kB / 481.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000344/0.2897, allocations: 318.7 kB / 481.4 MB, free: 10.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000268/0.29, allocations: 152.6 kB / 481.5 MB, free: 10.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002203/0.2902, allocations: 215.5 kB / 481.7 MB, free: 10.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002151/0.2904, allocations: 160.5 kB / 481.9 MB, free: 10.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.384e-05/0.2905, allocations: 34.19 kB / 481.9 MB, free: 10.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.2906, allocations: 69.33 kB / 482 MB, free: 10.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.2908, allocations: 122.3 kB / 482.1 MB, free: 9.969 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001583/0.2909, allocations: 169.4 kB / 482.3 MB, free: 9.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005094/0.2914, allocations: 441.4 kB / 482.7 MB, free: 9.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2914, allocations: 1.156 kB / 482.7 MB, free: 9.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2914, allocations: 0 / 482.7 MB, free: 9.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.2915, allocations: 4 kB / 482.7 MB, free: 9.508 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.001257/0.2927, allocations: 0.7237 MB / 483.4 MB, free: 8.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.2928, allocations: 8.656 kB / 483.4 MB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001304/0.2929, allocations: 86.8 kB / 483.5 MB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001697/0.2931, allocations: 75.48 kB / 483.6 MB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002522/0.2933, allocations: 229.3 kB / 483.8 MB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.314e-05/0.2933, allocations: 40.34 kB / 483.9 MB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.62e-05/0.2934, allocations: 45.22 kB / 483.9 MB, free: 8.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007504/0.2942, allocations: 461.4 kB / 484.3 MB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.885e-05/0.2942, allocations: 11.91 kB / 484.4 MB, free: 8.262 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.2942, allocations: 20.5 kB / 484.4 MB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.2942, allocations: 14.66 kB / 484.4 MB, free: 8.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006708/0.2949, allocations: 373.4 kB / 484.8 MB, free: 8.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.2965, allocations: 1.027 MB / 485.8 MB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.2976, allocations: 496.7 kB / 486.3 MB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003071/0.2979, allocations: 161.7 kB / 486.4 MB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.8e-05/0.298, allocations: 36.97 kB / 486.5 MB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004969/0.2985, allocations: 268.4 kB / 486.7 MB, free: 6.137 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.623e-06/0.2985, allocations: 0 / 486.7 MB, free: 6.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001085/0.2996, allocations: 0.5715 MB / 487.3 MB, free: 5.559 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.271e-05/0.2997, allocations: 81.11 kB / 487.4 MB, free: 5.461 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003834/0.3, allocations: 353.7 kB / 487.7 MB, free: 5.105 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.3001, allocations: 29.7 kB / 487.8 MB, free: 5.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001923/0.3003, allocations: 264.6 kB / 488 MB, free: 4.809 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.3004, allocations: 138.8 kB / 488.1 MB, free: 4.672 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.197e-05/0.3005, allocations: 57.7 kB / 488.2 MB, free: 4.609 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001896/0.3007, allocations: 350.8 kB / 488.5 MB, free: 4.258 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002745/0.301, allocations: 143.9 kB / 488.7 MB, free: 4.117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003219/0.3013, allocations: 190 kB / 488.9 MB, free: 3.922 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002718/0.304, allocations: 0.6649 MB / 489.5 MB, free: 3.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.304, allocations: 4 kB / 489.5 MB, free: 3.246 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007344/0.3047, allocations: 429.1 kB / 490 MB, free: 2.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3047, allocations: 4 kB / 490 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3048, allocations: 240 / 490 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.3048, allocations: 11.92 kB / 490 MB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003146/0.3051, allocations: 71.91 kB / 490 MB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.3051, allocations: 32 / 490 MB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000156/0.3052, allocations: 31.81 kB / 490.1 MB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.3053, allocations: 15.98 kB / 490.1 MB, free: 2.688 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.0002653/0.3055, allocations: 184.3 kB / 490.3 MB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.676e-05/0.3056, allocations: 39.77 kB / 490.3 MB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008574/0.3065, allocations: 470.1 kB / 490.8 MB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.3065, allocations: 7.938 kB / 490.8 MB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3065, allocations: 3.938 kB / 490.8 MB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.3065, allocations: 3.984 kB / 490.8 MB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005177/0.307, allocations: 452.3 kB / 491.2 MB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.307, allocations: 0 / 491.2 MB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002853/0.3073, allocations: 71.91 kB / 491.3 MB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.3073, allocations: 7.938 kB / 491.3 MB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.3073, allocations: 11.98 kB / 491.3 MB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.3073, allocations: 3.938 kB / 491.3 MB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3073, allocations: 4 kB / 491.3 MB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007573/0.3081, allocations: 465.1 kB / 491.8 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.081e-05/0.3081, allocations: 51.58 kB / 491.8 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.46e-05/0.3082, allocations: 8 kB / 491.8 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.3083, allocations: 19.92 kB / 491.9 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.821e-05/0.3084, allocations: 27.95 kB / 491.9 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.3084, allocations: 8 kB / 491.9 MB, free: 0.8086 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002715/0.3087, allocations: 259.1 kB / 492.1 MB, free: 0.5547 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3087, allocations: 0 / 492.1 MB, free: 0.5547 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003222/0.309, allocations: 99.61 kB / 492.2 MB, free: 468 kB / 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.001532/0.3106, allocations: 1.211 MB / 493.5 MB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006865/0.3112, allocations: 367.1 kB / 493.8 MB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3112, allocations: 0 / 493.8 MB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003312/0.3116, allocations: 183.8 kB / 494 MB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.3118, allocations: 25.48 kB / 494 MB, free: 14.65 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005252/0.3171, allocations: 3.787 MB / 497.8 MB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.3173, allocations: 256.5 kB / 498.1 MB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000118/0.3175, allocations: 30.28 kB / 498.1 MB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002206/0.3177, allocations: 172.4 kB / 498.3 MB, free: 10.28 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3177, allocations: 0 / 498.3 MB, free: 10.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03594/0.3536, allocations: 7.09 MB / 0.4935 GB, free: 3.305 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12, allocations: 6.312 kB / 0.4935 GB, free: 3.305 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: 14.712783324997872] Failed to read output from testmodel.py, exit status != 0: 12.136370376683772 12.162311632 11.865924266 Calling exit ...