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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 174.5 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.213/1.213, allocations: 221.4 MB / 234.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008817/0.0008818, allocations: 88.44 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3176/0.3176, allocations: 28.82 MB / 365.3 MB, free: 42.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.353e-05/2.355e-05, allocations: 4 kB / 430.6 MB, free: 4.438 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1013, allocations: 57.49 MB / 488.1 MB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3042/0.4056, allocations: 79.34 MB / 0.5542 GB, free: 25.54 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001434/0.4058, allocations: 66.62 kB / 0.5542 GB, free: 25.52 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01232/0.4181, allocations: 4.899 MB / 0.559 GB, free: 22.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.4182, allocations: 0 / 0.559 GB, free: 22.73 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.048e-05/0.4182, allocations: 15.17 kB / 0.559 GB, free: 22.71 MB / 394.7 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.00106/0.4193, allocations: 0.6735 MB / 0.5597 GB, free: 22.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.4193, allocations: 8.031 kB / 0.5597 GB, free: 22.08 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.4195, allocations: 63.72 kB / 0.5598 GB, free: 22.02 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.4197, allocations: 261.2 kB / 0.56 GB, free: 21.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.767e-05/0.4198, allocations: 31.52 kB / 0.56 GB, free: 21.71 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.713e-05/0.4199, allocations: 49.25 kB / 0.5601 GB, free: 21.67 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007786/0.4206, allocations: 458.1 kB / 0.5605 GB, free: 21.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.4207, allocations: 0 / 0.5605 GB, free: 21.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.034e-05/0.4207, allocations: 20.23 kB / 0.5605 GB, free: 21.4 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.4207, allocations: 15.95 kB / 0.5606 GB, free: 21.39 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005557/0.4213, allocations: 375.4 kB / 0.5609 GB, free: 21.16 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.4231, allocations: 1.191 MB / 0.5621 GB, free: 20.35 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.4242, allocations: 0.5694 MB / 0.5626 GB, free: 19.97 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002056/0.4244, allocations: 173.4 kB / 0.5628 GB, free: 19.86 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.777e-05/0.4245, allocations: 41.61 kB / 0.5628 GB, free: 19.84 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003168/0.4248, allocations: 276.8 kB / 0.5631 GB, free: 19.66 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 2.014e-06/0.4248, allocations: 0 / 0.5631 GB, free: 19.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.0005842/0.4254, allocations: 433 kB / 0.5635 GB, free: 19.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/0.4255, allocations: 81.11 kB / 0.5636 GB, free: 19.28 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002337/0.4257, allocations: 300.1 kB / 0.5639 GB, free: 19.05 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.4257, allocations: 37.45 kB / 0.5639 GB, free: 19.02 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.4258, allocations: 251.4 kB / 0.5642 GB, free: 18.85 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.696e-05/0.4259, allocations: 133.5 kB / 0.5643 GB, free: 18.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.51e-05/0.426, allocations: 8.5 kB / 0.5643 GB, free: 18.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.287e-05/0.426, allocations: 358.5 kB / 0.5646 GB, free: 18.42 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/0.4262, allocations: 143.6 kB / 0.5648 GB, free: 18.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.4264, allocations: 181.5 kB / 0.5649 GB, free: 18.22 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00021/0.4266, allocations: 157.4 kB / 0.5651 GB, free: 18.13 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4266, allocations: 1.172 kB / 0.5651 GB, free: 18.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004897/0.4271, allocations: 437.8 kB / 0.5655 GB, free: 17.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.4272, allocations: 7.984 kB / 0.5655 GB, free: 17.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.4272, allocations: 4.562 kB / 0.5655 GB, free: 17.83 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.4272, allocations: 4 kB / 0.5655 GB, free: 17.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.4275, allocations: 78.19 kB / 0.5656 GB, free: 17.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.4275, allocations: 0 / 0.5656 GB, free: 17.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.4277, allocations: 33.12 kB / 0.5656 GB, free: 17.74 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.482e-05/0.4277, allocations: 17.69 kB / 0.5656 GB, free: 17.73 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: Rawfiber.level:DISCRETE(start = Rawfiber.x0 fixed = false ) "Discrete state variable" type: Real Eggs.level:DISCRETE(start = Eggs.x0 fixed = false ) "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 () * 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.0001125/0.4278, allocations: 127.7 kB / 0.5658 GB, free: 17.61 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.207e-05/0.4279, allocations: 43.44 kB / 0.5658 GB, free: 17.57 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007193/0.4286, allocations: 0.5088 MB / 0.5663 GB, free: 17.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.4286, allocations: 8.031 kB / 0.5663 GB, free: 17.25 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.4286, allocations: 0 / 0.5663 GB, free: 17.25 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.4286, allocations: 6.578 kB / 0.5663 GB, free: 17.24 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004111/0.4291, allocations: 0.4949 MB / 0.5668 GB, free: 16.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.4291, allocations: 5.594 kB / 0.5668 GB, free: 16.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.4293, allocations: 73.72 kB / 0.5669 GB, free: 16.83 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-06/0.4294, allocations: 4 kB / 0.5669 GB, free: 16.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.672e-05/0.4294, allocations: 8.953 kB / 0.5669 GB, free: 16.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.339e-06/0.4294, allocations: 11.89 kB / 0.5669 GB, free: 16.81 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.4294, allocations: 1.688 kB / 0.5669 GB, free: 16.81 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005258/0.4299, allocations: 481.2 kB / 0.5674 GB, free: 16.46 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.315e-05/0.43, allocations: 113.9 kB / 0.5675 GB, free: 16.34 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.793e-05/0.4301, allocations: 16.31 kB / 0.5675 GB, free: 16.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.4302, allocations: 12.33 kB / 0.5675 GB, free: 16.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.609e-05/0.4303, allocations: 30.91 kB / 0.5675 GB, free: 16.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.132e-05/0.4303, allocations: 20.52 kB / 0.5676 GB, free: 16.29 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001933/0.4305, allocations: 241.8 kB / 0.5678 GB, free: 16.12 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4305, allocations: 11.94 kB / 0.5678 GB, free: 16.11 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002682/0.4308, allocations: 90.77 kB / 0.5679 GB, free: 16.03 MB / 394.7 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) * 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.0001514/0.431, allocations: 122.5 kB / 0.568 GB, free: 15.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000371/0.4314, allocations: 333.8 kB / 0.5683 GB, free: 15.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4314, allocations: 2.812 kB / 0.5683 GB, free: 15.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.4316, allocations: 183.1 kB / 0.5685 GB, free: 15.55 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001636/0.4317, allocations: 18.48 kB / 0.5685 GB, free: 15.54 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008274/0.4326, allocations: 0.6237 MB / 0.5691 GB, free: 15.03 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/0.4329, allocations: 0.8608 MB / 0.57 GB, free: 14.22 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001239/0.433, allocations: 29.12 kB / 0.57 GB, free: 14.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.504e-05/0.4331, allocations: 33.41 kB / 0.57 GB, free: 14.18 MB / 394.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4331, allocations: 0 / 0.57 GB, free: 14.18 MB / 394.7 MB Notification: Performance of Templates: time 0.005053/0.4381, allocations: 2.088 MB / 0.5721 GB, free: 12.96 MB / 394.7 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)