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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM") translateModel(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008658/0.0008658, allocations: 86.72 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009706/0.000971, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2982/0.2982, allocations: 28.85 MB / 319.9 MB, free: 6.309 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003521/0.0003525, allocations: 12 kB / 387.9 MB, free: 3.531 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2954, allocations: 57.48 MB / 445.4 MB, free: 32.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.001945/0.2974, allocations: 1.923 MB / 447.3 MB, free: 31.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007893/0.2982, allocations: 418.8 kB / 447.7 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.2983, allocations: 5.75 kB / 447.7 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.547e-05/0.2984, allocations: 36.14 kB / 447.7 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.2986, allocations: 7.031 kB / 447.7 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003545/0.2989, allocations: 114.4 kB / 447.9 MB, free: 31.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002312/0.2992, allocations: 283.4 kB / 448.1 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000226/0.2994, allocations: 159.9 kB / 448.3 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.96e-05/0.2995, allocations: 99.02 kB / 448.4 MB, free: 30.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001445/0.2996, allocations: 124.9 kB / 448.5 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.124e-05/0.2997, allocations: 11.53 kB / 448.5 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.149e-05/0.2998, allocations: 37.23 kB / 448.6 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.345e-05/0.2999, allocations: 102.2 kB / 448.7 MB, free: 30.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.932e-05/0.3, allocations: 87.83 kB / 448.7 MB, free: 30.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002229/0.3002, allocations: 268.6 kB / 449 MB, free: 30.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3002, allocations: 0 / 449 MB, free: 30.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3002, allocations: 0 / 449 MB, free: 30.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.3002, allocations: 3 kB / 449 MB, free: 30.55 MB / 350.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.0009264/0.3011, allocations: 0.6966 MB / 449.7 MB, free: 30 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.3012, allocations: 12.12 kB / 449.7 MB, free: 30 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.279e-05/0.3013, allocations: 68.61 kB / 449.8 MB, free: 29.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.3014, allocations: 260.1 kB / 450 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.323e-05/0.3015, allocations: 34.12 kB / 450.1 MB, free: 29.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.378e-05/0.3015, allocations: 45.31 kB / 450.1 MB, free: 29.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006199/0.3021, allocations: 469.4 kB / 450.6 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.3022, allocations: 0 / 450.6 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.3022, allocations: 18.91 kB / 450.6 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.3022, allocations: 11.62 kB / 450.6 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005368/0.3028, allocations: 379.5 kB / 451 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.304, allocations: 1.157 MB / 452.1 MB, free: 28.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009986/0.305, allocations: 0.5243 MB / 452.7 MB, free: 28.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002539/0.3053, allocations: 174.2 kB / 452.8 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.563e-05/0.3054, allocations: 40.69 kB / 452.9 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003955/0.3058, allocations: 271.2 kB / 453.1 MB, free: 28.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.703e-06/0.3058, allocations: 0 / 453.1 MB, free: 28.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.0008481/0.3066, allocations: 0.5563 MB / 453.7 MB, free: 28.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.3067, allocations: 82.95 kB / 453.8 MB, free: 28.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002539/0.3069, allocations: 344.4 kB / 454.1 MB, free: 27.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.307, allocations: 36.2 kB / 454.1 MB, free: 27.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.3071, allocations: 255.5 kB / 454.4 MB, free: 27.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.565e-05/0.3072, allocations: 138.8 kB / 454.5 MB, free: 27.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.303e-05/0.3072, allocations: 4 kB / 454.5 MB, free: 27.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.625e-05/0.3073, allocations: 349.9 kB / 454.9 MB, free: 27.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.3075, allocations: 142.5 kB / 455 MB, free: 27.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.3077, allocations: 190.6 kB / 455.2 MB, free: 27.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.308, allocations: 165.5 kB / 455.4 MB, free: 27.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.308, allocations: 0 / 455.4 MB, free: 27.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005547/0.3086, allocations: 434.3 kB / 455.8 MB, free: 26.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.3086, allocations: 13.23 kB / 455.8 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3086, allocations: 0 / 455.8 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.3086, allocations: 2.625 kB / 455.8 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000272/0.3089, allocations: 72.91 kB / 455.9 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.3089, allocations: 2.625 kB / 455.9 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.3091, allocations: 23.09 kB / 455.9 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.3091, allocations: 18.48 kB / 455.9 MB, free: 26.82 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: Rawfiber.level:DISCRETE(start = Rawfiber.x0 fixed = true ) "Discrete state variable" type: Real Eggs.level:DISCRETE(start = Eggs.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,Eggs.level,$PRE.Rawfiber.level,Rawfiber.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001906/0.3093, allocations: 191.8 kB / 456.1 MB, free: 26.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.813e-05/0.3093, allocations: 45.89 kB / 456.1 MB, free: 26.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006655/0.31, allocations: 465.9 kB / 456.6 MB, free: 26.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.31, allocations: 6.625 kB / 456.6 MB, free: 26.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.31, allocations: 2.625 kB / 456.6 MB, free: 26.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.31, allocations: 3.328 kB / 456.6 MB, free: 26.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000418/0.3105, allocations: 0.49 MB / 457.1 MB, free: 26.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.3105, allocations: 0 / 457.1 MB, free: 26.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002807/0.3108, allocations: 71.16 kB / 457.2 MB, free: 26.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.3108, allocations: 1.375 kB / 457.2 MB, free: 26.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.226e-05/0.3108, allocations: 11.19 kB / 457.2 MB, free: 26.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.3108, allocations: 6.078 kB / 457.2 MB, free: 26.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3108, allocations: 7.375 kB / 457.2 MB, free: 26.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006538/0.3115, allocations: 466.2 kB / 457.6 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.94e-05/0.3115, allocations: 116.1 kB / 457.8 MB, free: 25.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.527e-05/0.3116, allocations: 11.84 kB / 457.8 MB, free: 25.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.3117, allocations: 17.97 kB / 457.8 MB, free: 25.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.703e-05/0.3118, allocations: 30.66 kB / 457.8 MB, free: 25.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.3118, allocations: 7.781 kB / 457.8 MB, free: 25.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000202/0.312, allocations: 254.3 kB / 458.1 MB, free: 25.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.312, allocations: 0 / 458.1 MB, free: 25.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002945/0.3123, allocations: 89.72 kB / 458.2 MB, free: 25.62 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001386/0.3125, allocations: 113 kB / 458.3 MB, free: 25.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006119/0.3131, allocations: 372.2 kB / 458.6 MB, free: 25.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3131, allocations: 0 / 458.6 MB, free: 25.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003073/0.3134, allocations: 200.8 kB / 458.8 MB, free: 25.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002433/0.3137, allocations: 25.3 kB / 458.9 MB, free: 25.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.3149, allocations: 0.9901 MB / 459.8 MB, free: 24.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.3152, allocations: 0.8498 MB / 460.7 MB, free: 24.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00013/0.3154, allocations: 28.06 kB / 460.7 MB, free: 24.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.152e-05/0.3154, allocations: 31.12 kB / 460.8 MB, free: 24.02 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3155, allocations: 0 / 460.8 MB, free: 24.02 MB / 350.1 MB Notification: Performance of Templates: time 0.005338/0.3208, allocations: 2.103 MB / 462.9 MB, free: 23.82 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.makefile Environment - environmentSimulation: (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 & ./SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1) Environment - environmentSimulation: