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.0009247/0.0009295, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005477/0.005477, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.22/1.22, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2581/0.2581, allocations: 28.85 MB / 320.3 MB, free: 6.195 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002952/0.0002953, allocations: 12.19 kB / 388.6 MB, free: 3.078 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2716, allocations: 57.47 MB / 446.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.001769/0.2735, allocations: 2.029 MB / 448.1 MB, free: 31.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007635/0.2742, allocations: 421.7 kB / 448.5 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.2744, allocations: 10.84 kB / 448.5 MB, free: 31.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.76e-05/0.2744, allocations: 28.72 kB / 448.5 MB, free: 31.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.2746, allocations: 12.56 kB / 448.6 MB, free: 31.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003422/0.2749, allocations: 125.8 kB / 448.7 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002126/0.2752, allocations: 303.3 kB / 449 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000238/0.2754, allocations: 185.1 kB / 449.2 MB, free: 30.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.341e-05/0.2755, allocations: 103 kB / 449.3 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.2756, allocations: 126.8 kB / 449.4 MB, free: 30.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.112e-05/0.2757, allocations: 15.75 kB / 449.4 MB, free: 30.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.87e-05/0.2758, allocations: 38.31 kB / 449.4 MB, free: 30.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.277e-05/0.2759, allocations: 93.81 kB / 449.5 MB, free: 30.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.933e-05/0.276, allocations: 205.8 kB / 449.7 MB, free: 30.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.2762, allocations: 374.4 kB / 450.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2762, allocations: 0 / 450.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2763, allocations: 0 / 450.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.2763, allocations: 0 / 450.1 MB, free: 30.32 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.0008852/0.2772, allocations: 0.6938 MB / 450.8 MB, free: 29.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.2772, allocations: 8.688 kB / 450.8 MB, free: 29.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000107/0.2773, allocations: 94.14 kB / 450.9 MB, free: 29.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.272e-05/0.2774, allocations: 61.28 kB / 450.9 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001598/0.2776, allocations: 281 kB / 451.2 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.253e-05/0.2776, allocations: 38.92 kB / 451.3 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.396e-05/0.2777, allocations: 41.97 kB / 451.3 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006152/0.2783, allocations: 471.2 kB / 451.8 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.2783, allocations: 3.938 kB / 451.8 MB, free: 29.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.2783, allocations: 18.84 kB / 451.8 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.2783, allocations: 11.5 kB / 451.8 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005441/0.2789, allocations: 383.9 kB / 452.2 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.2801, allocations: 1.169 MB / 453.3 MB, free: 28.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.2811, allocations: 0.5282 MB / 453.9 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.2814, allocations: 171.8 kB / 454 MB, free: 28.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.748e-05/0.2814, allocations: 36.98 kB / 454.1 MB, free: 28.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003872/0.2818, allocations: 266.6 kB / 454.3 MB, free: 28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.804e-06/0.2818, allocations: 0 / 454.3 MB, free: 28 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.000864/0.2827, allocations: 0.5765 MB / 454.9 MB, free: 27.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.2827, allocations: 86.36 kB / 455 MB, free: 27.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002468/0.283, allocations: 355.8 kB / 455.3 MB, free: 27.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.283, allocations: 32.33 kB / 455.4 MB, free: 27.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.893e-05/0.2831, allocations: 249.1 kB / 455.6 MB, free: 27.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.613e-05/0.2832, allocations: 134.9 kB / 455.7 MB, free: 27.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.549e-05/0.2832, allocations: 32.97 kB / 455.8 MB, free: 27.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.206e-05/0.2833, allocations: 353.2 kB / 456.1 MB, free: 26.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.2835, allocations: 146.8 kB / 456.3 MB, free: 26.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.2838, allocations: 190.9 kB / 456.4 MB, free: 26.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002315/0.2861, allocations: 0.6758 MB / 457.1 MB, free: 26.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2861, allocations: 0 / 457.1 MB, free: 26.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005762/0.2867, allocations: 433.8 kB / 457.5 MB, free: 26.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.2867, allocations: 5.562 kB / 457.6 MB, free: 26.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2867, allocations: 1.094 kB / 457.6 MB, free: 26.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.2867, allocations: 6.062 kB / 457.6 MB, free: 26.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002824/0.287, allocations: 73.02 kB / 457.6 MB, free: 26.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.2871, allocations: 6.109 kB / 457.6 MB, free: 26.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.2872, allocations: 41.11 kB / 457.7 MB, free: 26.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.2872, allocations: 7.438 kB / 457.7 MB, free: 26.31 MB / 350.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.0002036/0.2874, allocations: 185.3 kB / 457.9 MB, free: 26.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.212e-05/0.2875, allocations: 37.88 kB / 457.9 MB, free: 26.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007284/0.2882, allocations: 467.1 kB / 458.4 MB, free: 25.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.2882, allocations: 8 kB / 458.4 MB, free: 25.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2882, allocations: 1.281 kB / 458.4 MB, free: 25.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.2883, allocations: 1.281 kB / 458.4 MB, free: 25.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004096/0.2887, allocations: 0.5105 MB / 458.9 MB, free: 25.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2887, allocations: 0 / 458.9 MB, free: 25.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002702/0.289, allocations: 72.95 kB / 458.9 MB, free: 25.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.289, allocations: 1.875 kB / 459 MB, free: 25.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.12e-05/0.289, allocations: 8.578 kB / 459 MB, free: 25.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.289, allocations: 9.25 kB / 459 MB, free: 25.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.289, allocations: 1.344 kB / 459 MB, free: 25.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006335/0.2896, allocations: 466.7 kB / 459.4 MB, free: 25.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.981e-05/0.2897, allocations: 119.3 kB / 459.5 MB, free: 25.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.151e-05/0.2898, allocations: 7.438 kB / 459.5 MB, free: 25.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.2899, allocations: 21.78 kB / 459.6 MB, free: 25.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.832e-05/0.29, allocations: 26.73 kB / 459.6 MB, free: 25.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.29, allocations: 7.625 kB / 459.6 MB, free: 25.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001936/0.2902, allocations: 259 kB / 459.9 MB, free: 25.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2902, allocations: 4 kB / 459.9 MB, free: 25.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002979/0.2905, allocations: 93.27 kB / 460 MB, free: 25.12 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 (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.001186/0.2917, allocations: 1.229 MB / 461.2 MB, free: 24.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006113/0.2923, allocations: 373.8 kB / 461.5 MB, free: 24.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.2923, allocations: 5.094 kB / 461.6 MB, free: 24.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003083/0.2927, allocations: 204.6 kB / 461.8 MB, free: 24.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.2929, allocations: 25.84 kB / 461.8 MB, free: 24.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004135/0.2971, allocations: 4.023 MB / 465.8 MB, free: 21.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.2973, allocations: 0.8555 MB / 466.7 MB, free: 21.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001257/0.2975, allocations: 34.58 kB / 466.7 MB, free: 21.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.2977, allocations: 171.6 kB / 466.9 MB, free: 20.91 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2977, allocations: 0 / 466.9 MB, free: 20.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01737/0.315, allocations: 5.9 MB / 472.8 MB, free: 20.42 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001261/0.3152, allocations: 195.5 kB / 472.9 MB, free: 20.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.817/2.132, allocations: 0 / 472.9 MB, free: 20.17 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/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)