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.001057/0.001057, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001223/0.001223, allocations: 193.8 kB / 16.14 MB, free: 6.703 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.344/1.344, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3377/0.3377, allocations: 28.79 MB / 318.8 MB, free: 5.941 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001025/0.001025, allocations: 59.91 kB / 385.9 MB, free: 4.078 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.3982, allocations: 56.41 MB / 442.3 MB, free: 39.77 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003329/0.4016, allocations: 2.406 MB / 444.8 MB, free: 38.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008049/0.4024, allocations: 427.9 kB / 445.2 MB, free: 38.46 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.4025, allocations: 5.375 kB / 445.2 MB, free: 38.46 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.4027, allocations: 28.36 kB / 445.2 MB, free: 38.45 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.4028, allocations: 16.19 kB / 445.2 MB, free: 38.44 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003286/0.4031, allocations: 115.2 kB / 445.3 MB, free: 38.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000217/0.4034, allocations: 312.8 kB / 445.6 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002659/0.4036, allocations: 196.8 kB / 445.8 MB, free: 38.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.325e-05/0.4037, allocations: 122.8 kB / 446 MB, free: 38.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.4039, allocations: 168.2 kB / 446.1 MB, free: 38.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.762e-05/0.404, allocations: 26.88 kB / 446.1 MB, free: 38.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.4041, allocations: 45.89 kB / 446.2 MB, free: 38.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.4042, allocations: 128 kB / 446.3 MB, free: 38.24 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.4044, allocations: 201.5 kB / 446.5 MB, free: 38.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002972/0.4047, allocations: 381.1 kB / 446.9 MB, free: 38.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.4047, allocations: 6.172 kB / 446.9 MB, free: 38.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.4047, allocations: 0 / 446.9 MB, free: 38.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.4047, allocations: 0 / 446.9 MB, free: 38.04 MB / 366.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.001125/0.4058, allocations: 0.7782 MB / 447.7 MB, free: 37.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.4059, allocations: 11.19 kB / 447.7 MB, free: 37.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.262e-05/0.406, allocations: 60.69 kB / 447.7 MB, free: 37.47 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001966/0.4062, allocations: 282.5 kB / 448 MB, free: 37.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/0.4062, allocations: 30.66 kB / 448 MB, free: 37.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.545e-05/0.4063, allocations: 46.66 kB / 448.1 MB, free: 37.19 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006545/0.4069, allocations: 467.6 kB / 448.5 MB, free: 37.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.407, allocations: 4.125 kB / 448.5 MB, free: 37.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.487e-05/0.407, allocations: 20.88 kB / 448.6 MB, free: 37.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.407, allocations: 12.72 kB / 448.6 MB, free: 37.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006007/0.4076, allocations: 368.5 kB / 448.9 MB, free: 37.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001264/0.4089, allocations: 1.16 MB / 450.1 MB, free: 36.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.4099, allocations: 0.5067 MB / 450.6 MB, free: 36.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002519/0.4102, allocations: 177.6 kB / 450.8 MB, free: 36.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.175e-05/0.4103, allocations: 43.3 kB / 450.8 MB, free: 36.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004366/0.4107, allocations: 269.6 kB / 451.1 MB, free: 35.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 1.793e-06/0.4107, allocations: 0 / 451.1 MB, free: 35.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=41): time 0.0008866/0.4116, allocations: 0.5614 MB / 451.6 MB, free: 35.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.4117, allocations: 86.14 kB / 451.7 MB, free: 35.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002555/0.4119, allocations: 351.1 kB / 452.1 MB, free: 35.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.412, allocations: 36.3 kB / 452.1 MB, free: 35.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.4121, allocations: 250.9 kB / 452.4 MB, free: 35.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.211e-05/0.4122, allocations: 131.8 kB / 452.5 MB, free: 35.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.335e-05/0.4122, allocations: 62.55 kB / 452.5 MB, free: 35.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.393e-05/0.4123, allocations: 350.7 kB / 452.9 MB, free: 34.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002412/0.4126, allocations: 146.5 kB / 453 MB, free: 34.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.4128, allocations: 188.2 kB / 453.2 MB, free: 34.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00237/0.4152, allocations: 0.6621 MB / 453.9 MB, free: 34.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4152, allocations: 0 / 453.9 MB, free: 34.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006084/0.4158, allocations: 432.2 kB / 454.3 MB, free: 34.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.4158, allocations: 5.562 kB / 454.3 MB, free: 34.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.4159, allocations: 3.031 kB / 454.3 MB, free: 34.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.4159, allocations: 0 / 454.3 MB, free: 34.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000285/0.4162, allocations: 73.38 kB / 454.4 MB, free: 34.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.4162, allocations: 7.875 kB / 454.4 MB, free: 34.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.4163, allocations: 31.84 kB / 454.4 MB, free: 34.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.4164, allocations: 16.66 kB / 454.4 MB, free: 34.29 MB / 366.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.000229/0.4166, allocations: 193.5 kB / 454.6 MB, free: 34.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.715e-05/0.4167, allocations: 36 kB / 454.7 MB, free: 34.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007567/0.4174, allocations: 466.1 kB / 455.1 MB, free: 33.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.4174, allocations: 2.781 kB / 455.1 MB, free: 33.94 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.4175, allocations: 6.469 kB / 455.1 MB, free: 33.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.4175, allocations: 0 / 455.1 MB, free: 33.94 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004707/0.4179, allocations: 0.4996 MB / 455.6 MB, free: 33.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.418, allocations: 0 / 455.6 MB, free: 33.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002673/0.4182, allocations: 68.45 kB / 455.7 MB, free: 33.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.4182, allocations: 6.875 kB / 455.7 MB, free: 33.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.4183, allocations: 7.156 kB / 455.7 MB, free: 33.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.4183, allocations: 0 / 455.7 MB, free: 33.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.4183, allocations: 10.72 kB / 455.7 MB, free: 33.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006637/0.419, allocations: 451.8 kB / 456.2 MB, free: 33.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.398e-05/0.419, allocations: 119.4 kB / 456.3 MB, free: 33.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.613e-05/0.4191, allocations: 13.81 kB / 456.3 MB, free: 33.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.4192, allocations: 17.03 kB / 456.3 MB, free: 33.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.641e-05/0.4193, allocations: 29.7 kB / 456.3 MB, free: 33.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.456e-05/0.4193, allocations: 13 kB / 456.3 MB, free: 33.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002494/0.4196, allocations: 251.6 kB / 456.6 MB, free: 33.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4196, allocations: 0 / 456.6 MB, free: 33.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003134/0.4199, allocations: 88.95 kB / 456.7 MB, free: 33.12 MB / 366.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.0001647/0.4201, allocations: 114.1 kB / 456.8 MB, free: 33.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006105/0.4207, allocations: 374.6 kB / 457.2 MB, free: 32.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4207, allocations: 0 / 457.2 MB, free: 32.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002975/0.421, allocations: 198 kB / 457.3 MB, free: 32.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.4213, allocations: 25.09 kB / 457.4 MB, free: 32.85 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.4225, allocations: 1.045 MB / 458.4 MB, free: 32.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.4228, allocations: 0.846 MB / 459.3 MB, free: 31.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000124/0.4229, allocations: 36.66 kB / 459.3 MB, free: 31.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.81e-05/0.423, allocations: 23.69 kB / 459.3 MB, free: 31.46 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.423, allocations: 0 / 459.3 MB, free: 31.46 MB / 366.1 MB Notification: Performance of Templates: time 0.005614/0.4286, allocations: 2.233 MB / 461.6 MB, free: 31.25 MB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.makefile (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)