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.001229/0.001229, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001336/0.001336, allocations: 218.2 kB / 23.04 MB, free: 5.074 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.377/1.377, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.1767/0.1767, allocations: 29.23 MB / 342.5 MB, free: 5.805 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,fileNamePrefix="SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM",fmuType="cs",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.001848/0.001848, allocations: 59.89 kB / 479.2 MB, free: 0.582 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3117, allocations: 60.8 MB / 0.5273 GB, free: 7.977 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003029/0.3148, allocations: 2.403 MB / 0.5296 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000917/0.3157, allocations: 453.4 kB / 0.5301 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.3158, allocations: 4.344 kB / 0.5301 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.3159, allocations: 45.55 kB / 0.5301 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.3161, allocations: 34.28 kB / 0.5302 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004927/0.3165, allocations: 150.8 kB / 0.5303 GB, free: 5.797 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003362/0.3169, allocations: 323.1 kB / 0.5306 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000259/0.3171, allocations: 158.7 kB / 0.5308 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.3173, allocations: 143.9 kB / 0.5309 GB, free: 5.484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002078/0.3175, allocations: 178 kB / 0.5311 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.934e-05/0.3175, allocations: 34.97 kB / 0.5311 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001598/0.3177, allocations: 66.75 kB / 0.5312 GB, free: 5.375 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001266/0.3178, allocations: 126.8 kB / 0.5313 GB, free: 5.309 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.318, allocations: 221.8 kB / 0.5315 GB, free: 5.145 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004475/0.3184, allocations: 434.8 kB / 0.5319 GB, free: 4.922 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3184, allocations: 1.062 kB / 0.5319 GB, free: 4.922 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3184, allocations: 0 / 0.5319 GB, free: 4.922 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.3184, allocations: 3.938 kB / 0.5319 GB, free: 4.918 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.001084/0.3195, allocations: 0.718 MB / 0.5326 GB, free: 4.387 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.3195, allocations: 10.86 kB / 0.5326 GB, free: 4.387 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.269e-05/0.3196, allocations: 12.19 kB / 0.5326 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.047e-05/0.3197, allocations: 99.64 kB / 0.5327 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.3198, allocations: 69.66 kB / 0.5328 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.32, allocations: 221.8 kB / 0.533 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.152e-05/0.32, allocations: 44.22 kB / 0.5331 GB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.924e-05/0.3201, allocations: 51.56 kB / 0.5331 GB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007271/0.3208, allocations: 470.4 kB / 0.5336 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.3208, allocations: 2.125 kB / 0.5336 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.989e-05/0.3209, allocations: 20 kB / 0.5336 GB, free: 3.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.3209, allocations: 10.19 kB / 0.5336 GB, free: 3.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006628/0.3215, allocations: 384.8 kB / 0.5339 GB, free: 3.723 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.323, allocations: 1.144 MB / 0.5351 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.3241, allocations: 0.5023 MB / 0.5356 GB, free: 2.898 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002997/0.3244, allocations: 177.7 kB / 0.5357 GB, free: 2.836 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.285e-05/0.3244, allocations: 36.16 kB / 0.5358 GB, free: 2.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004665/0.3249, allocations: 280.2 kB / 0.536 GB, free: 2.699 MB / 382.1 MB Notification: Performance of pre-optimization done (n=45): time 1.452e-06/0.3249, allocations: 0 / 0.536 GB, free: 2.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.002487/0.3274, allocations: 1.549 MB / 0.5375 GB, free: 2.074 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.3274, allocations: 84.42 kB / 0.5376 GB, free: 1.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002826/0.3277, allocations: 347.2 kB / 0.538 GB, free: 1.758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.03e-05/0.3277, allocations: 38.23 kB / 0.538 GB, free: 1.719 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.3278, allocations: 257.3 kB / 0.5382 GB, free: 1.492 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.663e-05/0.3279, allocations: 187.4 kB / 0.5384 GB, free: 1.328 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.328, allocations: 83.66 kB / 0.5385 GB, free: 1.273 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.279e-05/0.3281, allocations: 358.5 kB / 0.5388 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003315/0.3284, allocations: 221 kB / 0.539 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003452/0.3288, allocations: 268.4 kB / 0.5393 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002825/0.3316, allocations: 0.8972 MB / 0.5402 GB, free: 324 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3316, allocations: 5.344 kB / 0.5402 GB, free: 320 kB / 382.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000821/0.3324, allocations: 0.6142 MB / 0.5408 GB, free: 52 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.3325, allocations: 5.438 kB / 0.5408 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.3325, allocations: 1.375 kB / 0.5408 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.3325, allocations: 2.688 kB / 0.5408 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003604/0.3328, allocations: 96.2 kB / 0.5409 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.3328, allocations: 2.688 kB / 0.5409 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.333, allocations: 22.92 kB / 0.5409 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.993e-05/0.333, allocations: 23.81 kB / 0.5409 GB, free: 12 kB / 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 (58): * Single equations (assignments): 58 * 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.0002903/0.3333, allocations: 198.1 kB / 0.5411 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.539e-05/0.3334, allocations: 48.77 kB / 0.5412 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001141/0.3345, allocations: 0.6867 MB / 0.5418 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.3345, allocations: 5.531 kB / 0.5418 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3345, allocations: 1.125 kB / 0.5418 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.882e-05/0.3346, allocations: 5.047 kB / 0.5418 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001999/0.3366, allocations: 1.466 MB / 0.5433 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.401e-06/0.3366, allocations: 3 kB / 0.5433 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003463/0.3369, allocations: 101.1 kB / 0.5434 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.3369, allocations: 4.594 kB / 0.5434 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.014e-05/0.337, allocations: 12.75 kB / 0.5434 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.631e-05/0.337, allocations: 8.328 kB / 0.5434 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.337, allocations: 4.406 kB / 0.5434 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.338, allocations: 0.8496 MB / 0.5442 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.65e-05/0.3381, allocations: 42.08 kB / 0.5443 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.841e-05/0.3381, allocations: 19.89 kB / 0.5443 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.3384, allocations: 15.91 kB / 0.5443 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.3385, allocations: 57.3 kB / 0.5444 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.206e-05/0.3385, allocations: 30.64 kB / 0.5444 GB, free: 13.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002518/0.3388, allocations: 252.1 kB / 0.5446 GB, free: 13.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3388, allocations: 0 / 0.5446 GB, free: 13.72 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004244/0.3392, allocations: 90.03 kB / 0.5447 GB, free: 13.7 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (57): * Single equations (assignments): 55 * 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.001966/0.3412, allocations: 1.735 MB / 0.5464 GB, free: 12.49 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008626/0.342, allocations: 0.5301 MB / 0.5469 GB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.342, allocations: 0 / 0.5469 GB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004448/0.3425, allocations: 286.6 kB / 0.5472 GB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004704/0.3429, allocations: 41.11 kB / 0.5472 GB, free: 12.17 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006278/0.3492, allocations: 4.892 MB / 0.552 GB, free: 7.457 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006223/0.3498, allocations: 0.8661 MB / 0.5529 GB, free: 6.562 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001952/0.35, allocations: 70.95 kB / 0.5529 GB, free: 6.496 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002921/0.3503, allocations: 203.4 kB / 0.5531 GB, free: 6.301 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3503, allocations: 0 / 0.5531 GB, free: 6.301 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02969/0.38, allocations: 8.276 MB / 0.5612 GB, free: 14.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.43, allocations: 7.438 kB / 0.5612 GB, free: 14.15 MB / 414.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM_fmu --startTime=1949 --stopTime=1978 --stepSize=0.0116 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM.fmu > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.062143535003997] Failed to read output from testmodel.py, exit status != 0: 11.588755619013682 11.604232378 11.282790042 Calling exit ...