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: "" <> buildModelFMU(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,fileNamePrefix="SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,fileNamePrefix="SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 174.1 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.386/1.386, allocations: 221.4 MB / 234.6 MB, free: 14.44 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.00106/0.00106, allocations: 94.8 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.4971/0.4971, allocations: 28.83 MB / 365.3 MB, free: 42.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.157e-05/4.189e-05, allocations: 0 / 430.8 MB, free: 4.328 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1484, allocations: 57.48 MB / 488.2 MB, free: 10.78 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4867/0.6352, allocations: 79.34 MB / 0.5543 GB, free: 25.45 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.6355, allocations: 67.27 kB / 0.5543 GB, free: 25.42 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01421/0.6497, allocations: 4.895 MB / 0.5591 GB, free: 22.65 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.6498, allocations: 3.281 kB / 0.5591 GB, free: 22.65 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.523e-05/0.6499, allocations: 19.81 kB / 0.5591 GB, free: 22.63 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.001587/0.6514, allocations: 0.6636 MB / 0.5598 GB, free: 22.01 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.398e-05/0.6515, allocations: 8.031 kB / 0.5598 GB, free: 22 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000299/0.6518, allocations: 94.42 kB / 0.5599 GB, free: 21.94 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.652, allocations: 63.03 kB / 0.5599 GB, free: 21.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.6523, allocations: 268.2 kB / 0.5602 GB, free: 21.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.665e-05/0.6524, allocations: 34.38 kB / 0.5602 GB, free: 21.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.458e-05/0.6525, allocations: 44.5 kB / 0.5603 GB, free: 21.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008783/0.6534, allocations: 461.8 kB / 0.5607 GB, free: 21.26 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.6534, allocations: 0 / 0.5607 GB, free: 21.26 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.233e-05/0.6534, allocations: 19 kB / 0.5607 GB, free: 21.26 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.6535, allocations: 19.95 kB / 0.5608 GB, free: 21.24 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006168/0.6541, allocations: 377.2 kB / 0.5611 GB, free: 21.02 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002209/0.6563, allocations: 1.2 MB / 0.5623 GB, free: 20.2 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.6576, allocations: 0.5708 MB / 0.5628 GB, free: 19.81 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002491/0.6579, allocations: 177.7 kB / 0.563 GB, free: 19.7 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001006/0.658, allocations: 38.08 kB / 0.563 GB, free: 19.68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004441/0.6584, allocations: 280.7 kB / 0.5633 GB, free: 19.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 3.737e-06/0.6584, allocations: 4.641 kB / 0.5633 GB, free: 19.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.0006995/0.6591, allocations: 421.9 kB / 0.5637 GB, free: 19.22 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.922e-05/0.6592, allocations: 86.31 kB / 0.5638 GB, free: 19.12 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003134/0.6595, allocations: 303.9 kB / 0.5641 GB, free: 18.89 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.171e-05/0.6596, allocations: 37.27 kB / 0.5641 GB, free: 18.85 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.6597, allocations: 256.3 kB / 0.5644 GB, free: 18.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.6599, allocations: 137.2 kB / 0.5645 GB, free: 18.58 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.865e-05/0.6599, allocations: 7.75 kB / 0.5645 GB, free: 18.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.66, allocations: 350.7 kB / 0.5648 GB, free: 18.25 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002/0.6602, allocations: 144.2 kB / 0.565 GB, free: 18.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002261/0.6604, allocations: 182.7 kB / 0.5652 GB, free: 18.05 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.6607, allocations: 157.1 kB / 0.5653 GB, free: 17.97 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.6607, allocations: 0 / 0.5653 GB, free: 17.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005566/0.6613, allocations: 443.8 kB / 0.5657 GB, free: 17.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.6613, allocations: 9.359 kB / 0.5657 GB, free: 17.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.6613, allocations: 0 / 0.5657 GB, free: 17.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.6613, allocations: 0 / 0.5657 GB, free: 17.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003144/0.6617, allocations: 73.41 kB / 0.5658 GB, free: 17.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/0.6617, allocations: 9.203 kB / 0.5658 GB, free: 17.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001542/0.6618, allocations: 28.33 kB / 0.5658 GB, free: 17.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.788e-05/0.6619, allocations: 19.12 kB / 0.5659 GB, free: 17.56 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.0001769/0.6621, allocations: 128.9 kB / 0.566 GB, free: 17.45 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.989e-05/0.6621, allocations: 43.39 kB / 0.566 GB, free: 17.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008965/0.663, allocations: 0.5148 MB / 0.5665 GB, free: 17.09 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.6631, allocations: 5.922 kB / 0.5665 GB, free: 17.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.6631, allocations: 5.562 kB / 0.5665 GB, free: 17.08 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.6631, allocations: 3.281 kB / 0.5665 GB, free: 17.08 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000601/0.6637, allocations: 0.4946 MB / 0.567 GB, free: 16.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.6637, allocations: 1.688 kB / 0.567 GB, free: 16.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002815/0.664, allocations: 71.73 kB / 0.5671 GB, free: 16.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.429e-06/0.664, allocations: 0 / 0.5671 GB, free: 16.67 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.997e-05/0.664, allocations: 19.64 kB / 0.5671 GB, free: 16.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.6641, allocations: 4 kB / 0.5671 GB, free: 16.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.6641, allocations: 0 / 0.5671 GB, free: 16.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006272/0.6647, allocations: 476.5 kB / 0.5676 GB, free: 16.32 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.84e-05/0.6648, allocations: 117.1 kB / 0.5677 GB, free: 16.18 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.221e-05/0.6648, allocations: 12.94 kB / 0.5677 GB, free: 16.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000155/0.665, allocations: 18.62 kB / 0.5677 GB, free: 16.17 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.6651, allocations: 29 kB / 0.5677 GB, free: 16.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.942e-05/0.6652, allocations: 22.86 kB / 0.5678 GB, free: 16.14 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002538/0.6654, allocations: 248.2 kB / 0.568 GB, free: 15.95 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6654, allocations: 0 / 0.568 GB, free: 15.95 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003493/0.6658, allocations: 95.27 kB / 0.5681 GB, free: 15.87 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.001103/0.6669, allocations: 1.272 MB / 0.5693 GB, free: 14.77 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004616/0.6674, allocations: 338.6 kB / 0.5697 GB, free: 14.53 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.6674, allocations: 0 / 0.5697 GB, free: 14.53 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002221/0.6676, allocations: 181 kB / 0.5698 GB, free: 14.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000247/0.6679, allocations: 23.42 kB / 0.5699 GB, free: 14.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.6692, allocations: 0.7168 MB / 0.5706 GB, free: 13.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004404/0.6697, allocations: 0.8652 MB / 0.5714 GB, free: 13 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000141/0.6698, allocations: 28.61 kB / 0.5714 GB, free: 12.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002076/0.6701, allocations: 175.1 kB / 0.5716 GB, free: 12.96 MB / 394.7 MB Notification: Performance of SimCode: time 4.71e-07/0.6701, allocations: 0 / 0.5716 GB, free: 12.96 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02579/0.6959, allocations: 5.828 MB / 0.5773 GB, free: 8.332 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002245/0.6962, allocations: 161.6 kB / 0.5774 GB, free: 8.102 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.008/2.704, allocations: 0 / 0.5774 GB, free: 8.102 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM_fmu --startTime=1949 --stopTime=1978 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM.fmu > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1)