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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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 3.2.3+maint.om/package.mo): time 0.001137/0.001138, allocations: 180.5 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 205.1 MB / 221.8 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001096, allocations: 108.2 kB / 269.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.198/0.198, allocations: 28.76 MB / 345.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001072, allocations: 47.92 kB / 409.7 MB, free: 47.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1237, allocations: 53.59 MB / 463.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.004104/0.1278, allocations: 2.427 MB / 465.7 MB, free: 7.859 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.1289, allocations: 439.7 kB / 466.1 MB, free: 7.426 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.1291, allocations: 4 kB / 466.1 MB, free: 7.422 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.1292, allocations: 27.72 kB / 466.2 MB, free: 7.395 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.1294, allocations: 15.86 kB / 466.2 MB, free: 7.379 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004008/0.1298, allocations: 119.9 kB / 466.3 MB, free: 7.262 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003065/0.1301, allocations: 308.7 kB / 466.6 MB, free: 6.961 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000362/0.1305, allocations: 190.7 kB / 466.8 MB, free: 6.773 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001334/0.1306, allocations: 127.4 kB / 466.9 MB, free: 6.648 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002405/0.1309, allocations: 171.1 kB / 467.1 MB, free: 6.48 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.822e-05/0.1309, allocations: 20 kB / 467.1 MB, free: 6.461 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.1311, allocations: 51.91 kB / 467.2 MB, free: 6.41 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.1312, allocations: 123.5 kB / 467.3 MB, free: 6.289 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.1314, allocations: 194.6 kB / 467.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004246/0.1319, allocations: 398.7 kB / 467.9 MB, free: 5.707 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1319, allocations: 0 / 467.9 MB, free: 5.707 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1319, allocations: 0 / 467.9 MB, free: 5.707 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.1319, allocations: 0 / 467.9 MB, free: 5.707 MB / 314.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.001217/0.1331, allocations: 0.7854 MB / 468.6 MB, free: 4.867 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1332, allocations: 8.031 kB / 468.6 MB, free: 4.859 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.389e-05/0.1333, allocations: 64.19 kB / 468.7 MB, free: 4.797 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.1335, allocations: 282 kB / 469 MB, free: 4.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.1335, allocations: 33.38 kB / 469 MB, free: 4.449 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.003e-05/0.1336, allocations: 44.38 kB / 469.1 MB, free: 4.406 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007096/0.1343, allocations: 458.7 kB / 469.5 MB, free: 3.949 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.1343, allocations: 4.188 kB / 469.5 MB, free: 3.945 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.377e-05/0.1343, allocations: 19.94 kB / 469.5 MB, free: 3.926 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.1344, allocations: 15.98 kB / 469.5 MB, free: 3.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006523/0.135, allocations: 375.7 kB / 469.9 MB, free: 3.543 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.1366, allocations: 1.152 MB / 471.1 MB, free: 2.332 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.1378, allocations: 0.5093 MB / 471.6 MB, free: 1.805 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003291/0.1382, allocations: 177.6 kB / 471.8 MB, free: 1.625 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.235e-05/0.1383, allocations: 36.97 kB / 471.8 MB, free: 1.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006398/0.1389, allocations: 284.1 kB / 472.1 MB, free: 1.293 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 2.494e-06/0.1389, allocations: 0 / 472.1 MB, free: 1.293 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.00123/0.1402, allocations: 0.5549 MB / 472.6 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.703e-05/0.1403, allocations: 85.05 kB / 472.7 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004371/0.1407, allocations: 357.5 kB / 473.1 MB, free: 276 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/0.1408, allocations: 37.69 kB / 473.1 MB, free: 232 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002408/0.141, allocations: 244.5 kB / 473.3 MB, free: 15.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.1412, allocations: 134.1 kB / 473.5 MB, free: 15.85 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.1413, allocations: 57.7 kB / 473.5 MB, free: 15.79 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.1415, allocations: 358.8 kB / 473.9 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/0.1417, allocations: 143.9 kB / 474 MB, free: 15.29 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003035/0.1421, allocations: 182.4 kB / 474.2 MB, free: 15.1 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002722/0.1448, allocations: 0.6732 MB / 474.9 MB, free: 14.42 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1448, allocations: 0 / 474.9 MB, free: 14.42 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000689/0.1455, allocations: 428.9 kB / 475.3 MB, free: 13.99 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.1455, allocations: 11.98 kB / 475.3 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1456, allocations: 0 / 475.3 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.1456, allocations: 0 / 475.3 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.1459, allocations: 71.91 kB / 475.4 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.1459, allocations: 3.938 kB / 475.4 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.1461, allocations: 39.67 kB / 475.4 MB, free: 13.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/0.1461, allocations: 8 kB / 475.4 MB, free: 13.86 MB / 330.7 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.0002903/0.1464, allocations: 181.8 kB / 475.6 MB, free: 13.67 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.075e-05/0.1464, allocations: 39.52 kB / 475.6 MB, free: 13.63 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008102/0.1473, allocations: 457.1 kB / 476.1 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.1473, allocations: 4 kB / 476.1 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1473, allocations: 7.938 kB / 476.1 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.1473, allocations: 3.984 kB / 476.1 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005121/0.1478, allocations: 0.4971 MB / 476.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1478, allocations: 0 / 476.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002818/0.1481, allocations: 71.89 kB / 476.7 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.1481, allocations: 0 / 476.7 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.1482, allocations: 8 kB / 476.7 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.1482, allocations: 4 kB / 476.7 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.1482, allocations: 15.75 kB / 476.7 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.1496, allocations: 1.257 MB / 477.9 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.1498, allocations: 116.5 kB / 478.1 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.871e-05/0.1498, allocations: 15.98 kB / 478.1 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.15, allocations: 12 kB / 478.1 MB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.951e-05/0.15, allocations: 31.95 kB / 478.1 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.189e-05/0.1501, allocations: 12 kB / 478.1 MB, free: 10.99 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000254/0.1503, allocations: 255.1 kB / 478.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1503, allocations: 0 / 478.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004102/0.1508, allocations: 91.53 kB / 478.5 MB, free: 10.66 MB / 330.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) * 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.0001646/0.1509, allocations: 119.2 kB / 478.6 MB, free: 10.53 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006493/0.1516, allocations: 371 kB / 478.9 MB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1516, allocations: 0 / 478.9 MB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003226/0.1519, allocations: 203.8 kB / 479.1 MB, free: 9.969 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.1522, allocations: 29.48 kB / 479.2 MB, free: 9.938 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.1538, allocations: 1.273 MB / 480.4 MB, free: 8.613 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000426/0.1542, allocations: 0.8622 MB / 481.3 MB, free: 7.727 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000131/0.1544, allocations: 30.28 kB / 481.3 MB, free: 7.695 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.518e-05/0.1545, allocations: 23.44 kB / 481.4 MB, free: 7.672 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1545, allocations: 3.938 kB / 481.4 MB, free: 7.668 MB / 330.7 MB Notification: Performance of Templates: time 0.00606/0.1605, allocations: 2.324 MB / 483.7 MB, free: 5.344 MB / 330.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)