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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008101/0.0008101, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009089/0.000909, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.254/0.254, allocations: 28.83 MB / 319.9 MB, free: 6.309 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000289/0.0002894, allocations: 8 kB / 388 MB, free: 3.422 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2513, allocations: 57.48 MB / 445.5 MB, free: 32.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.001796/0.2531, allocations: 1.929 MB / 447.4 MB, free: 31.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007752/0.2539, allocations: 415.1 kB / 447.8 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.2541, allocations: 5.969 kB / 447.8 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.281e-05/0.2542, allocations: 28.81 kB / 447.8 MB, free: 31.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001155/0.2543, allocations: 14.16 kB / 447.8 MB, free: 31.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003455/0.2546, allocations: 106.2 kB / 447.9 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002091/0.2548, allocations: 291.6 kB / 448.2 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/0.2551, allocations: 162.2 kB / 448.4 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.036e-05/0.2551, allocations: 94.95 kB / 448.5 MB, free: 30.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.2553, allocations: 129.1 kB / 448.6 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/0.2553, allocations: 11.44 kB / 448.6 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.425e-05/0.2554, allocations: 36.8 kB / 448.6 MB, free: 30.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.916e-05/0.2555, allocations: 105.1 kB / 448.7 MB, free: 30.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.04e-05/0.2556, allocations: 88.89 kB / 448.8 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001876/0.2558, allocations: 265.5 kB / 449.1 MB, free: 30.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2558, allocations: 0 / 449.1 MB, free: 30.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2558, allocations: 3.938 kB / 449.1 MB, free: 30.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.2558, allocations: 0 / 449.1 MB, free: 30.52 MB / 350.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.0008323/0.2566, allocations: 0.6982 MB / 449.8 MB, free: 29.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.2567, allocations: 10.97 kB / 449.8 MB, free: 29.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.428e-05/0.2568, allocations: 91.06 kB / 449.9 MB, free: 29.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.466e-05/0.2569, allocations: 64.08 kB / 450 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.257, allocations: 262.9 kB / 450.2 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.917e-05/0.257, allocations: 38.5 kB / 450.3 MB, free: 29.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.03e-05/0.2571, allocations: 41.09 kB / 450.3 MB, free: 29.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006002/0.2577, allocations: 465.2 kB / 450.7 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.2577, allocations: 0 / 450.7 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/0.2577, allocations: 18 kB / 450.8 MB, free: 29.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.2578, allocations: 15.17 kB / 450.8 MB, free: 29.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005362/0.2583, allocations: 384.2 kB / 451.2 MB, free: 29.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.2595, allocations: 1.159 MB / 452.3 MB, free: 28.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009652/0.2605, allocations: 0.5278 MB / 452.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002387/0.2608, allocations: 179 kB / 453 MB, free: 28.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.189e-05/0.2608, allocations: 41.94 kB / 453.1 MB, free: 28.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003939/0.2612, allocations: 263.9 kB / 453.3 MB, free: 28.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.973e-06/0.2612, allocations: 0 / 453.3 MB, free: 28.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.0008551/0.2621, allocations: 0.5566 MB / 453.9 MB, free: 28.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.2622, allocations: 86.2 kB / 454 MB, free: 27.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002626/0.2624, allocations: 347.7 kB / 454.3 MB, free: 27.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.161e-05/0.2625, allocations: 36.39 kB / 454.3 MB, free: 27.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.2626, allocations: 262.4 kB / 454.6 MB, free: 27.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.091e-05/0.2627, allocations: 126.9 kB / 454.7 MB, free: 27.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.315e-05/0.2627, allocations: 10.97 kB / 454.7 MB, free: 27.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.342e-05/0.2628, allocations: 352.3 kB / 455.1 MB, free: 27.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002337/0.263, allocations: 139.9 kB / 455.2 MB, free: 27.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002277/0.2632, allocations: 189.1 kB / 455.4 MB, free: 26.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.2635, allocations: 163.2 kB / 455.5 MB, free: 26.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2635, allocations: 0 / 455.5 MB, free: 26.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005555/0.2641, allocations: 440.8 kB / 456 MB, free: 26.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.2641, allocations: 5.25 kB / 456 MB, free: 26.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.8e-06/0.2641, allocations: 0 / 456 MB, free: 26.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.2641, allocations: 2.625 kB / 456 MB, free: 26.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002739/0.2644, allocations: 72.94 kB / 456.1 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.2644, allocations: 2.625 kB / 456.1 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001349/0.2646, allocations: 33.42 kB / 456.1 MB, free: 26.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.2646, allocations: 11.88 kB / 456.1 MB, free: 26.71 MB / 350.1 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.0001967/0.2648, allocations: 189.5 kB / 456.3 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.777e-05/0.2648, allocations: 41.86 kB / 456.3 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000665/0.2655, allocations: 465.1 kB / 456.8 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.2655, allocations: 5.25 kB / 456.8 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.2655, allocations: 0 / 456.8 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.2655, allocations: 3.469 kB / 456.8 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000429/0.266, allocations: 0.4962 MB / 457.3 MB, free: 26.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.266, allocations: 5.281 kB / 457.3 MB, free: 26.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002748/0.2663, allocations: 65.98 kB / 457.4 MB, free: 26.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.2663, allocations: 5.359 kB / 457.4 MB, free: 26.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.2663, allocations: 18.42 kB / 457.4 MB, free: 26.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.227e-06/0.2663, allocations: 2.156 kB / 457.4 MB, free: 26.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.2663, allocations: 1.062 kB / 457.4 MB, free: 26.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006361/0.267, allocations: 462.3 kB / 457.8 MB, free: 25.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.05e-05/0.267, allocations: 123.2 kB / 458 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.2671, allocations: 11.84 kB / 458 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.2672, allocations: 17.78 kB / 458 MB, free: 25.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.019e-05/0.2673, allocations: 26.7 kB / 458 MB, free: 25.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.2673, allocations: 8.844 kB / 458 MB, free: 25.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002057/0.2675, allocations: 253 kB / 458.3 MB, free: 25.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2675, allocations: 0 / 458.3 MB, free: 25.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000324/0.2679, allocations: 90.06 kB / 458.4 MB, free: 25.53 MB / 350.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 (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.001195/0.2691, allocations: 1.235 MB / 459.6 MB, free: 24.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006215/0.2697, allocations: 370.6 kB / 460 MB, free: 24.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2697, allocations: 0 / 460 MB, free: 24.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003016/0.27, allocations: 192.1 kB / 460.1 MB, free: 24.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.2703, allocations: 37.95 kB / 460.2 MB, free: 24.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003208/0.2735, allocations: 2.672 MB / 462.8 MB, free: 23.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.2738, allocations: 0.8514 MB / 463.7 MB, free: 22.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.274, allocations: 30.59 kB / 463.7 MB, free: 22.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000169/0.2742, allocations: 172.5 kB / 463.9 MB, free: 22.32 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2742, allocations: 3.938 kB / 463.9 MB, free: 22.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01888/0.293, allocations: 5.76 MB / 469.7 MB, free: 21.84 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001439/0.2933, allocations: 188.5 kB / 469.8 MB, free: 21.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.632/1.925, allocations: 0 / 469.8 MB, free: 21.59 MB / 350.1 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) Environment - environmentSimulation: