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.001631/0.001631, allocations: 109.5 kB / 16.27 MB, free: 6.004 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.0016/0.0016, allocations: 187.4 kB / 17.2 MB, free: 5.617 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.38/1.38, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1755/0.1755, allocations: 28.77 MB / 319.8 MB, free: 1.996 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002407/0.002407, allocations: 65.23 kB / 387.2 MB, free: 41.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1167, allocations: 56.44 MB / 443.7 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003777/0.1206, allocations: 2.368 MB / 446 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.1216, allocations: 430.7 kB / 446.5 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.1218, allocations: 4 kB / 446.5 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000151/0.122, allocations: 51.45 kB / 446.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001626/0.1222, allocations: 35.61 kB / 446.6 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004935/0.1227, allocations: 147.7 kB / 446.7 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003218/0.123, allocations: 308.8 kB / 447 MB, free: 452 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003304/0.1234, allocations: 202.7 kB / 447.2 MB, free: 244 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.1235, allocations: 135.4 kB / 447.3 MB, free: 108 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002098/0.1237, allocations: 183 kB / 447.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.579e-05/0.1238, allocations: 36 kB / 447.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001403/0.1239, allocations: 51.98 kB / 447.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.1241, allocations: 135.6 kB / 447.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001722/0.1243, allocations: 214.5 kB / 447.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004615/0.1247, allocations: 398.5 kB / 448.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.1248, allocations: 0 / 448.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1248, allocations: 0 / 448.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.1248, allocations: 0 / 448.3 MB, free: 15.11 MB / 334.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.001256/0.1261, allocations: 0.7934 MB / 449.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1261, allocations: 8.031 kB / 449.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.852e-05/0.1262, allocations: 60.19 kB / 449.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.1264, allocations: 278.1 kB / 449.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.298e-05/0.1265, allocations: 41.36 kB / 449.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.262e-05/0.1266, allocations: 48.31 kB / 449.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007393/0.1273, allocations: 470.6 kB / 450 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.1273, allocations: 192 / 450 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.768e-05/0.1274, allocations: 19.94 kB / 450 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.1274, allocations: 8 kB / 450 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006933/0.1281, allocations: 371.8 kB / 450.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.1299, allocations: 1.156 MB / 451.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.1311, allocations: 0.5016 MB / 452.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000321/0.1314, allocations: 177.6 kB / 452.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.573e-05/0.1315, allocations: 36.97 kB / 452.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004942/0.132, allocations: 268.4 kB / 452.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.204e-06/0.132, allocations: 4 kB / 452.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.001055/0.1331, allocations: 0.5606 MB / 453.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.1332, allocations: 85.11 kB / 453.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003457/0.1335, allocations: 349.6 kB / 453.5 MB, free: 9.684 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.1336, allocations: 37.7 kB / 453.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.1337, allocations: 252.3 kB / 453.8 MB, free: 9.387 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.1338, allocations: 134.1 kB / 453.9 MB, free: 9.254 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.531e-05/0.1339, allocations: 57.7 kB / 454 MB, free: 9.191 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1341, allocations: 346.8 kB / 454.3 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002698/0.1343, allocations: 147.7 kB / 454.5 MB, free: 8.699 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002809/0.1346, allocations: 182.2 kB / 454.7 MB, free: 8.512 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002806/0.1375, allocations: 0.6798 MB / 455.3 MB, free: 7.824 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1375, allocations: 0 / 455.3 MB, free: 7.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007227/0.1382, allocations: 420.9 kB / 455.7 MB, free: 7.406 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1382, allocations: 8.031 kB / 455.7 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1383, allocations: 4 kB / 455.8 MB, free: 7.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1383, allocations: 0 / 455.8 MB, free: 7.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003085/0.1386, allocations: 75.89 kB / 455.8 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.1386, allocations: 3.938 kB / 455.8 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.1388, allocations: 27.69 kB / 455.9 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.1388, allocations: 12 kB / 455.9 MB, free: 7.277 MB / 334.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.0003075/0.1391, allocations: 197.5 kB / 456.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.621e-05/0.1392, allocations: 39.53 kB / 456.1 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008695/0.1401, allocations: 457.1 kB / 456.5 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/0.1401, allocations: 4 kB / 456.6 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.1401, allocations: 7.875 kB / 456.6 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.1401, allocations: 7.984 kB / 456.6 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005281/0.1407, allocations: 0.501 MB / 457.1 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1407, allocations: 0 / 457.1 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002918/0.141, allocations: 71.91 kB / 457.1 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.141, allocations: 0 / 457.1 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.141, allocations: 11.98 kB / 457.1 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.686e-06/0.141, allocations: 0 / 457.1 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.1411, allocations: 3.938 kB / 457.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007094/0.1418, allocations: 457.8 kB / 457.6 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.064e-05/0.1419, allocations: 116.6 kB / 457.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.947e-05/0.1419, allocations: 12 kB / 457.7 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.1421, allocations: 11.98 kB / 457.7 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.576e-05/0.1422, allocations: 27.91 kB / 457.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.25e-05/0.1422, allocations: 16 kB / 457.8 MB, free: 5.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002357/0.1424, allocations: 259.1 kB / 458 MB, free: 5 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1424, allocations: 0 / 458 MB, free: 5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003357/0.1428, allocations: 91.53 kB / 458.1 MB, free: 4.91 MB / 334.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.0001669/0.143, allocations: 115.2 kB / 458.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007948/0.1438, allocations: 383.7 kB / 458.6 MB, free: 4.414 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.1438, allocations: 8.062 kB / 458.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003282/0.1441, allocations: 195.9 kB / 458.8 MB, free: 4.215 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.1444, allocations: 25.64 kB / 458.8 MB, free: 4.188 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.1457, allocations: 0.8831 MB / 459.7 MB, free: 3.266 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.1461, allocations: 0.8463 MB / 460.6 MB, free: 2.387 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.1463, allocations: 31.44 kB / 460.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1463, allocations: 0 / 460.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of Templates: time 0.006562/0.1528, allocations: 4.05 MB / 464.6 MB, free: 14.3 MB / 350.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)