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.0008298/0.0008296, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007684/0.007684, allocations: 170.5 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3529/0.3529, allocations: 28.83 MB / 320.3 MB, free: 6.168 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003411/0.0003411, allocations: 19.98 kB / 388.5 MB, free: 3.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3071, allocations: 57.49 MB / 446 MB, free: 32.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.001958/0.3091, allocations: 2.031 MB / 448 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008348/0.3099, allocations: 412 kB / 448.4 MB, free: 31.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001242/0.31, allocations: 5.031 kB / 448.4 MB, free: 31.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001057/0.3102, allocations: 28.62 kB / 448.4 MB, free: 31.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.3103, allocations: 24.59 kB / 448.5 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003719/0.3107, allocations: 115.9 kB / 448.6 MB, free: 31.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002486/0.3109, allocations: 308.9 kB / 448.9 MB, free: 30.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002619/0.3112, allocations: 184 kB / 449.1 MB, free: 30.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.017e-05/0.3113, allocations: 103.2 kB / 449.2 MB, free: 30.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001502/0.3115, allocations: 133.2 kB / 449.3 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.275e-05/0.3115, allocations: 15.52 kB / 449.3 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.212e-05/0.3116, allocations: 38.03 kB / 449.3 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.917e-05/0.3117, allocations: 97.8 kB / 449.4 MB, free: 30.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.3118, allocations: 198.6 kB / 449.6 MB, free: 30.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002747/0.3121, allocations: 372.3 kB / 450 MB, free: 30.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3121, allocations: 6.281 kB / 450 MB, free: 30.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3121, allocations: 0 / 450 MB, free: 30.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.3121, allocations: 0 / 450 MB, free: 30.28 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.0009931/0.3131, allocations: 0.6905 MB / 450.7 MB, free: 29.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.3132, allocations: 8.438 kB / 450.7 MB, free: 29.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.452e-05/0.3133, allocations: 61.97 kB / 450.8 MB, free: 29.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.3135, allocations: 278.2 kB / 451 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.379e-05/0.3135, allocations: 35.81 kB / 451.1 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.186e-05/0.3136, allocations: 47.53 kB / 451.1 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006894/0.3143, allocations: 460.4 kB / 451.6 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.3143, allocations: 192 / 451.6 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.3143, allocations: 21.94 kB / 451.6 MB, free: 29.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.3144, allocations: 11.5 kB / 451.6 MB, free: 29.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006193/0.315, allocations: 381.4 kB / 452 MB, free: 29.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.3163, allocations: 1.163 MB / 453.1 MB, free: 28.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.3175, allocations: 0.5294 MB / 453.7 MB, free: 28.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002866/0.3178, allocations: 185.5 kB / 453.8 MB, free: 28.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.122e-05/0.3178, allocations: 31.91 kB / 453.9 MB, free: 28.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004071/0.3183, allocations: 268 kB / 454.1 MB, free: 28.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.843e-06/0.3183, allocations: 4 kB / 454.1 MB, free: 28.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.0009076/0.3192, allocations: 0.5575 MB / 454.7 MB, free: 27.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.3192, allocations: 86.3 kB / 454.8 MB, free: 27.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002816/0.3195, allocations: 359.6 kB / 455.1 MB, free: 27.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.3196, allocations: 36.33 kB / 455.2 MB, free: 27.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.3197, allocations: 248.4 kB / 455.4 MB, free: 27.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.681e-05/0.3198, allocations: 135.7 kB / 455.5 MB, free: 27.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-05/0.3198, allocations: 28.97 kB / 455.6 MB, free: 27.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.868e-05/0.3199, allocations: 357.1 kB / 455.9 MB, free: 26.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002394/0.3201, allocations: 142.4 kB / 456.1 MB, free: 26.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002508/0.3204, allocations: 201.4 kB / 456.3 MB, free: 26.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002522/0.3229, allocations: 0.6658 MB / 456.9 MB, free: 26.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3229, allocations: 0 / 456.9 MB, free: 26.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006553/0.3236, allocations: 434.8 kB / 457.3 MB, free: 26.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.3236, allocations: 5.531 kB / 457.4 MB, free: 26.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.3237, allocations: 0 / 457.4 MB, free: 26.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-05/0.3237, allocations: 2.594 kB / 457.4 MB, free: 26.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/0.324, allocations: 72.53 kB / 457.4 MB, free: 26.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.324, allocations: 6.875 kB / 457.4 MB, free: 26.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001485/0.3241, allocations: 32.78 kB / 457.5 MB, free: 26.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.3242, allocations: 15.41 kB / 457.5 MB, free: 26.37 MB / 350.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.0002266/0.3244, allocations: 184.7 kB / 457.7 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.211e-05/0.3245, allocations: 38 kB / 457.7 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007732/0.3252, allocations: 469.9 kB / 458.2 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.3253, allocations: 5.344 kB / 458.2 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3253, allocations: 3.938 kB / 458.2 MB, free: 26.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.3253, allocations: 4.484 kB / 458.2 MB, free: 26.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004641/0.3258, allocations: 0.4928 MB / 458.7 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3258, allocations: 0 / 458.7 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000291/0.3261, allocations: 65.47 kB / 458.7 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.718e-06/0.3261, allocations: 6.5 kB / 458.7 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.539e-05/0.3261, allocations: 21.33 kB / 458.8 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.3261, allocations: 2.188 kB / 458.8 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3261, allocations: 5.25 kB / 458.8 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008245/0.327, allocations: 460.1 kB / 459.2 MB, free: 25.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.53e-05/0.327, allocations: 124.8 kB / 459.3 MB, free: 25.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.689e-05/0.3271, allocations: 14.19 kB / 459.3 MB, free: 25.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.3272, allocations: 10.47 kB / 459.4 MB, free: 25.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.451e-05/0.3273, allocations: 33.33 kB / 459.4 MB, free: 25.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.995e-05/0.3274, allocations: 7.656 kB / 459.4 MB, free: 25.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002201/0.3276, allocations: 256.1 kB / 459.6 MB, free: 25.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3276, allocations: 3.938 kB / 459.7 MB, free: 25.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000329/0.3279, allocations: 89.44 kB / 459.7 MB, free: 25.18 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 (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.0001452/0.3281, allocations: 117.5 kB / 459.9 MB, free: 25.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006468/0.3287, allocations: 375.8 kB / 460.2 MB, free: 24.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3288, allocations: 0 / 460.2 MB, free: 24.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003212/0.3291, allocations: 206.3 kB / 460.4 MB, free: 24.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002671/0.3294, allocations: 23.09 kB / 460.4 MB, free: 24.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.3306, allocations: 1.04 MB / 461.5 MB, free: 24.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/0.331, allocations: 0.8467 MB / 462.3 MB, free: 23.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001262/0.3311, allocations: 32.11 kB / 462.4 MB, free: 23.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.171e-05/0.3312, allocations: 28.12 kB / 462.4 MB, free: 23.53 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3312, allocations: 0 / 462.4 MB, free: 23.53 MB / 350.1 MB Notification: Performance of Templates: time 0.006231/0.3374, allocations: 2.171 MB / 464.6 MB, free: 23.33 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: