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.01068/0.01068, allocations: 171.4 kB / 15.11 MB, free: 5.969 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.735/1.735, allocations: 223.2 MB / 239 MB, free: 48 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009224/0.0009222, allocations: 91.03 kB / 290.2 MB, free: 4.543 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1989/0.1989, allocations: 28.85 MB / 370.2 MB, free: 20 kB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000357/0.0003572, allocations: 11.91 kB / 438.2 MB, free: 88.23 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1116, allocations: 57.48 MB / 495.7 MB, free: 31.6 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3905/0.5022, allocations: 79.41 MB / 0.5616 GB, free: 11.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/0.5025, allocations: 69.09 kB / 0.5617 GB, free: 11.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01373/0.5162, allocations: 4.917 MB / 0.5665 GB, free: 10.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.5162, allocations: 0 / 0.5665 GB, free: 10.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.264e-05/0.5163, allocations: 9.625 kB / 0.5665 GB, free: 10.98 MB / 378.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.0011/0.5174, allocations: 0.7262 MB / 0.5672 GB, free: 10.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.5174, allocations: 11.62 kB / 0.5672 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001252/0.5176, allocations: 91.64 kB / 0.5673 GB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.288e-05/0.5177, allocations: 67.48 kB / 0.5674 GB, free: 10.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.5179, allocations: 264.7 kB / 0.5676 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.371e-05/0.5179, allocations: 36.41 kB / 0.5676 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.327e-05/0.518, allocations: 45.81 kB / 0.5677 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008161/0.5188, allocations: 485.2 kB / 0.5681 GB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.5189, allocations: 3.938 kB / 0.5682 GB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.898e-05/0.5189, allocations: 17.97 kB / 0.5682 GB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.5189, allocations: 14.2 kB / 0.5682 GB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007602/0.5197, allocations: 411.9 kB / 0.5686 GB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001864/0.5216, allocations: 1.214 MB / 0.5698 GB, free: 9.539 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001392/0.523, allocations: 0.5858 MB / 0.5703 GB, free: 9.477 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.419e-05/0.5231, allocations: 38.75 kB / 0.5704 GB, free: 9.473 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005362/0.5236, allocations: 285.9 kB / 0.5706 GB, free: 9.406 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.896e-06/0.5236, allocations: 0 / 0.5706 GB, free: 9.406 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.001198/0.5249, allocations: 0.6103 MB / 0.5712 GB, free: 9.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.5249, allocations: 85.45 kB / 0.5713 GB, free: 9.246 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.5252, allocations: 305 kB / 0.5716 GB, free: 9.141 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.5253, allocations: 40.81 kB / 0.5717 GB, free: 9.105 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.5254, allocations: 258.6 kB / 0.5719 GB, free: 8.965 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.667e-05/0.5255, allocations: 131.2 kB / 0.572 GB, free: 8.883 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.761e-05/0.5256, allocations: 8.469 kB / 0.572 GB, free: 8.883 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.312e-05/0.5256, allocations: 349.6 kB / 0.5724 GB, free: 8.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002995/0.5259, allocations: 160.6 kB / 0.5725 GB, free: 8.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003171/0.5263, allocations: 203.7 kB / 0.5727 GB, free: 8.531 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003367/0.5266, allocations: 178.8 kB / 0.5729 GB, free: 8.523 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.5266, allocations: 0 / 0.5729 GB, free: 8.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007783/0.5274, allocations: 467.4 kB / 0.5733 GB, free: 8.457 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.5274, allocations: 12.95 kB / 0.5733 GB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.5275, allocations: 2.984 kB / 0.5733 GB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.5275, allocations: 2.688 kB / 0.5733 GB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003464/0.5278, allocations: 74.92 kB / 0.5734 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.5279, allocations: 2.625 kB / 0.5734 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001694/0.528, allocations: 31.67 kB / 0.5735 GB, free: 8.434 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.581e-05/0.5281, allocations: 18.83 kB / 0.5735 GB, free: 8.434 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: Rawfiber.level:DISCRETE(start = Rawfiber.x0 fixed = true ) "Discrete state variable" type: Real Eggs.level:DISCRETE(start = Eggs.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,Eggs.level,$PRE.Rawfiber.level,Rawfiber.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002554/0.5283, allocations: 187.1 kB / 0.5736 GB, free: 8.309 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.636e-05/0.5284, allocations: 45.5 kB / 0.5737 GB, free: 8.285 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.5294, allocations: 0.5403 MB / 0.5742 GB, free: 8.223 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.543e-06/0.5295, allocations: 4.281 kB / 0.5742 GB, free: 8.223 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.5295, allocations: 5.156 kB / 0.5742 GB, free: 8.219 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.5295, allocations: 2.406 kB / 0.5742 GB, free: 8.219 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005875/0.5301, allocations: 0.5048 MB / 0.5747 GB, free: 8.016 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.5301, allocations: 1.125 kB / 0.5747 GB, free: 8.016 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003164/0.5304, allocations: 72.84 kB / 0.5748 GB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.5304, allocations: 5.656 kB / 0.5748 GB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.5305, allocations: 11.69 kB / 0.5748 GB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/0.5305, allocations: 10.11 kB / 0.5748 GB, free: 8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5305, allocations: 1.094 kB / 0.5748 GB, free: 8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008229/0.5313, allocations: 0.4978 MB / 0.5753 GB, free: 7.883 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.776e-05/0.5314, allocations: 116.1 kB / 0.5754 GB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.286e-05/0.5314, allocations: 14.2 kB / 0.5754 GB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001613/0.5316, allocations: 19.95 kB / 0.5754 GB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.359e-05/0.5317, allocations: 26.28 kB / 0.5755 GB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.835e-05/0.5317, allocations: 17 kB / 0.5755 GB, free: 7.758 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002512/0.532, allocations: 255.3 kB / 0.5757 GB, free: 7.672 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.532, allocations: 0 / 0.5757 GB, free: 7.672 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003685/0.5324, allocations: 94.16 kB / 0.5758 GB, free: 7.648 MB / 378.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 (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.001392/0.5338, allocations: 1.313 MB / 0.5771 GB, free: 6.922 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006672/0.5345, allocations: 370.3 kB / 0.5775 GB, free: 6.902 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.5345, allocations: 0 / 0.5775 GB, free: 6.902 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003318/0.5348, allocations: 195.2 kB / 0.5776 GB, free: 6.895 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.5351, allocations: 20.59 kB / 0.5777 GB, free: 6.895 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00363/0.5387, allocations: 2.94 MB / 0.5805 GB, free: 5.672 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003394/0.5391, allocations: 0.8729 MB / 0.5814 GB, free: 4.961 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000156/0.5392, allocations: 30.27 kB / 0.5814 GB, free: 4.953 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.5394, allocations: 164.3 kB / 0.5816 GB, free: 4.945 MB / 378.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5394, allocations: 0 / 0.5816 GB, free: 4.945 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01863/0.5581, allocations: 5.747 MB / 0.5872 GB, free: 2.605 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001886/0.5583, allocations: 175.8 kB / 0.5874 GB, free: 2.371 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.121/2.679, allocations: 0 / 0.5874 GB, free: 2.371 MB / 378.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)