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.001158/0.001158, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001137/0.001137, allocations: 187 kB / 17.34 MB, free: 5.762 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.232/1.232, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1536/0.1536, allocations: 28.78 MB / 320 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 63.89 kB / 444.9 MB, free: 2.586 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0863/0.08746, allocations: 56.42 MB / 0.4896 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003237/0.09073, allocations: 2.366 MB / 0.4919 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009693/0.09172, allocations: 430.7 kB / 0.4923 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001813/0.09192, allocations: 7.938 kB / 0.4923 GB, free: 7.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001495/0.09208, allocations: 51.39 kB / 0.4924 GB, free: 7.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001512/0.09225, allocations: 27.62 kB / 0.4924 GB, free: 7.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004441/0.0927, allocations: 147.8 kB / 0.4926 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00031/0.09303, allocations: 324.7 kB / 0.4929 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002778/0.09331, allocations: 202.7 kB / 0.4931 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.09346, allocations: 135.4 kB / 0.4932 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.09365, allocations: 175.1 kB / 0.4934 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.099e-05/0.09372, allocations: 36 kB / 0.4934 GB, free: 6.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.09385, allocations: 63.97 kB / 0.4935 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.09398, allocations: 131.5 kB / 0.4936 GB, free: 6.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.09414, allocations: 214.5 kB / 0.4938 GB, free: 5.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004099/0.09456, allocations: 430.1 kB / 0.4942 GB, free: 5.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.09457, allocations: 0 / 0.4942 GB, free: 5.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.09458, allocations: 0 / 0.4942 GB, free: 5.398 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.09459, allocations: 0 / 0.4942 GB, free: 5.398 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.001138/0.09573, allocations: 0.7814 MB / 0.495 GB, free: 4.562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.09577, allocations: 12.03 kB / 0.495 GB, free: 4.551 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.188e-05/0.09587, allocations: 64.17 kB / 0.495 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002019/0.09608, allocations: 274.1 kB / 0.4953 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.179e-05/0.09612, allocations: 29.38 kB / 0.4953 GB, free: 4.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.501e-05/0.09618, allocations: 44.38 kB / 0.4954 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006764/0.09686, allocations: 474.5 kB / 0.4958 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.09688, allocations: 192 / 0.4958 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.367e-05/0.09692, allocations: 19.94 kB / 0.4958 GB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.09694, allocations: 12 kB / 0.4958 GB, free: 3.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006226/0.09757, allocations: 375.8 kB / 0.4962 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.09897, allocations: 1.141 MB / 0.4973 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.1001, allocations: 0.5077 MB / 0.4978 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002813/0.1004, allocations: 177.6 kB / 0.498 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.347e-05/0.1004, allocations: 40.97 kB / 0.498 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00043/0.1009, allocations: 268.7 kB / 0.4983 GB, free: 1.012 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.773e-06/0.1009, allocations: 0 / 0.4983 GB, free: 1.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.0009332/0.1018, allocations: 0.5633 MB / 0.4988 GB, free: 452 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.1019, allocations: 81.11 kB / 0.4989 GB, free: 352 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003015/0.1022, allocations: 349.7 kB / 0.4992 GB, free: 15.99 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.1022, allocations: 37.64 kB / 0.4993 GB, free: 15.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.1024, allocations: 252.2 kB / 0.4995 GB, free: 15.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.732e-05/0.1025, allocations: 134.1 kB / 0.4996 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.897e-05/0.1025, allocations: 61.69 kB / 0.4997 GB, free: 15.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1027, allocations: 354.8 kB / 0.5 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.1029, allocations: 139.9 kB / 0.5002 GB, free: 15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.1032, allocations: 182.3 kB / 0.5004 GB, free: 14.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002395/0.1056, allocations: 0.6647 MB / 0.501 GB, free: 14.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.1056, allocations: 0 / 0.501 GB, free: 14.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006348/0.1063, allocations: 436.8 kB / 0.5014 GB, free: 13.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.1063, allocations: 4 kB / 0.5014 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1063, allocations: 4 kB / 0.5014 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.1063, allocations: 0 / 0.5014 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002849/0.1066, allocations: 67.91 kB / 0.5015 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.1066, allocations: 7.875 kB / 0.5015 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.1068, allocations: 31.77 kB / 0.5015 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.1068, allocations: 12 kB / 0.5015 GB, free: 13.59 MB / 398.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.000218/0.107, allocations: 194.5 kB / 0.5017 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.644e-05/0.1071, allocations: 39.47 kB / 0.5018 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000747/0.1078, allocations: 462.3 kB / 0.5022 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1078, allocations: 8 kB / 0.5022 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1079, allocations: 7.938 kB / 0.5022 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1079, allocations: 0 / 0.5022 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004439/0.1083, allocations: 0.5085 MB / 0.5027 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1083, allocations: 0 / 0.5027 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002699/0.1086, allocations: 67.91 kB / 0.5028 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.1086, allocations: 0 / 0.5028 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.013e-05/0.1086, allocations: 8 kB / 0.5028 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.1086, allocations: 0 / 0.5028 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1087, allocations: 7.938 kB / 0.5028 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006416/0.1093, allocations: 457.4 kB / 0.5032 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.829e-05/0.1094, allocations: 120.6 kB / 0.5033 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.076e-05/0.1094, allocations: 15.92 kB / 0.5034 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.1096, allocations: 12 kB / 0.5034 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.386e-05/0.1097, allocations: 31.89 kB / 0.5034 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.1097, allocations: 12 kB / 0.5034 GB, free: 11.56 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002133/0.1099, allocations: 259.1 kB / 0.5037 GB, free: 11.3 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1099, allocations: 0 / 0.5037 GB, free: 11.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002823/0.1102, allocations: 91.53 kB / 0.5037 GB, free: 11.21 MB / 398.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.0001384/0.1103, allocations: 111.2 kB / 0.5039 GB, free: 11.1 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005996/0.1109, allocations: 368.1 kB / 0.5042 GB, free: 10.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.111, allocations: 4.062 kB / 0.5042 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002976/0.1113, allocations: 207.5 kB / 0.5044 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.1115, allocations: 25.56 kB / 0.5044 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.1127, allocations: 0.8597 MB / 0.5053 GB, free: 9.613 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000367/0.1131, allocations: 0.8502 MB / 0.5061 GB, free: 8.734 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.415e-05/0.1131, allocations: 35.42 kB / 0.5061 GB, free: 8.699 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1131, allocations: 0 / 0.5061 GB, free: 8.699 MB / 398.1 MB Notification: Performance of Templates: time 0.005985/0.1191, allocations: 4.062 MB / 0.5101 GB, free: 4.637 MB / 398.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)