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.0009265/0.0009265, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0009057/0.0009059, allocations: 177.3 kB / 15.94 MB, free: 228 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.309/1.309, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.29/0.29, allocations: 28.85 MB / 319.8 MB, free: 6.195 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003174/0.0003174, allocations: 8 kB / 387.9 MB, free: 3.441 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3198, allocations: 57.48 MB / 445.3 MB, free: 32.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.001984/0.3218, allocations: 1.937 MB / 447.3 MB, free: 31.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008392/0.3226, allocations: 417 kB / 447.7 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.3228, allocations: 6.938 kB / 447.7 MB, free: 31.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.214e-05/0.3229, allocations: 25.69 kB / 447.7 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000124/0.323, allocations: 21.03 kB / 447.7 MB, free: 31.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000365/0.3234, allocations: 110 kB / 447.8 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001884/0.3236, allocations: 175.8 kB / 448 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00023/0.3238, allocations: 163 kB / 448.2 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.673e-05/0.3239, allocations: 101.9 kB / 448.3 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001466/0.3241, allocations: 132.1 kB / 448.4 MB, free: 30.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.054e-05/0.3241, allocations: 11.66 kB / 448.4 MB, free: 30.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.699e-05/0.3242, allocations: 34.67 kB / 448.5 MB, free: 30.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001/0.3243, allocations: 101.6 kB / 448.6 MB, free: 30.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.447e-05/0.3244, allocations: 85.83 kB / 448.6 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002226/0.3246, allocations: 261.5 kB / 448.9 MB, free: 30.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.3246, allocations: 0 / 448.9 MB, free: 30.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3246, allocations: 0 / 448.9 MB, free: 30.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.3246, allocations: 0 / 448.9 MB, free: 30.58 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.0009627/0.3256, allocations: 0.6966 MB / 449.6 MB, free: 30.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3257, allocations: 8.094 kB / 449.6 MB, free: 30.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.3258, allocations: 97.08 kB / 449.7 MB, free: 29.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.704e-05/0.3259, allocations: 70.92 kB / 449.8 MB, free: 29.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.326, allocations: 259.9 kB / 450 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.064e-05/0.3261, allocations: 32.12 kB / 450 MB, free: 29.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.902e-05/0.3261, allocations: 45.19 kB / 450.1 MB, free: 29.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006141/0.3268, allocations: 466.4 kB / 450.5 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.3268, allocations: 0 / 450.5 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.319e-05/0.3268, allocations: 18.97 kB / 450.6 MB, free: 29.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.3268, allocations: 19.83 kB / 450.6 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005552/0.3274, allocations: 373.3 kB / 450.9 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.3287, allocations: 1.166 MB / 452.1 MB, free: 28.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.3298, allocations: 0.5327 MB / 452.6 MB, free: 28.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.156e-05/0.3299, allocations: 46.27 kB / 452.7 MB, free: 28.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004026/0.3303, allocations: 259 kB / 452.9 MB, free: 28.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.633e-06/0.3303, allocations: 0 / 452.9 MB, free: 28.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.0008926/0.3312, allocations: 0.5582 MB / 453.5 MB, free: 28.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.3312, allocations: 86.36 kB / 453.6 MB, free: 28.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002728/0.3315, allocations: 346.5 kB / 453.9 MB, free: 27.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.3315, allocations: 32.33 kB / 454 MB, free: 27.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.3316, allocations: 260.2 kB / 454.2 MB, free: 27.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.522e-05/0.3317, allocations: 131.9 kB / 454.3 MB, free: 27.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.247e-05/0.3318, allocations: 6.625 kB / 454.3 MB, free: 27.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.082e-05/0.3318, allocations: 350.6 kB / 454.7 MB, free: 27.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002273/0.3321, allocations: 142.6 kB / 454.8 MB, free: 27.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002437/0.3323, allocations: 192 kB / 455 MB, free: 27.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002611/0.3326, allocations: 157 kB / 455.2 MB, free: 27.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3326, allocations: 0 / 455.2 MB, free: 27.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000578/0.3332, allocations: 442.5 kB / 455.6 MB, free: 26.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.3332, allocations: 9.188 kB / 455.6 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.3332, allocations: 2.688 kB / 455.6 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.3332, allocations: 0 / 455.6 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.3335, allocations: 69.92 kB / 455.7 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.3335, allocations: 3.438 kB / 455.7 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.3337, allocations: 32.14 kB / 455.7 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.3337, allocations: 9.469 kB / 455.7 MB, free: 26.84 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.0002201/0.3339, allocations: 188.6 kB / 455.9 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.184e-05/0.334, allocations: 44.33 kB / 456 MB, free: 26.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007052/0.3347, allocations: 476.4 kB / 456.4 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3347, allocations: 5.062 kB / 456.4 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.3347, allocations: 0 / 456.4 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.3347, allocations: 3.375 kB / 456.4 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004013/0.3351, allocations: 0.5031 MB / 456.9 MB, free: 26.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3352, allocations: 0 / 456.9 MB, free: 26.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002601/0.3354, allocations: 67.88 kB / 457 MB, free: 26.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3354, allocations: 288 / 457 MB, free: 26.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.22e-05/0.3355, allocations: 17.02 kB / 457 MB, free: 26.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.3355, allocations: 3.938 kB / 457 MB, free: 26.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3355, allocations: 6.906 kB / 457 MB, free: 26.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006643/0.3362, allocations: 471.5 kB / 457.5 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.088e-05/0.3362, allocations: 120.8 kB / 457.6 MB, free: 25.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.876e-05/0.3363, allocations: 15.27 kB / 457.6 MB, free: 25.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.3364, allocations: 13.61 kB / 457.6 MB, free: 25.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.668e-05/0.3365, allocations: 26.53 kB / 457.7 MB, free: 25.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.3365, allocations: 15.52 kB / 457.7 MB, free: 25.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002004/0.3367, allocations: 245.1 kB / 457.9 MB, free: 25.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3367, allocations: 1.094 kB / 457.9 MB, free: 25.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000299/0.3371, allocations: 97.25 kB / 458 MB, free: 25.62 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.00136/0.3384, allocations: 1.311 MB / 459.3 MB, free: 24.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006856/0.3391, allocations: 368.4 kB / 459.7 MB, free: 24.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3391, allocations: 0 / 459.7 MB, free: 24.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003373/0.3395, allocations: 205 kB / 459.9 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.0001819/0.3397, allocations: 19.78 kB / 459.9 MB, free: 24.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00336/0.343, allocations: 2.939 MB / 462.8 MB, free: 22.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/0.3433, allocations: 0.8667 MB / 463.7 MB, free: 22.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.3435, allocations: 27.66 kB / 463.7 MB, free: 22.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001733/0.3437, allocations: 171.7 kB / 463.9 MB, free: 22.04 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3437, allocations: 4 kB / 463.9 MB, free: 22.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0177/0.3614, allocations: 5.735 MB / 469.6 MB, free: 21.56 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001318/0.3615, allocations: 178.5 kB / 469.8 MB, free: 21.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.854/2.216, allocations: 1.094 kB / 469.8 MB, free: 21.32 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: