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.001249/0.001248, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001305/0.001305, allocations: 190.1 kB / 16.25 MB, free: 6.629 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.29/1.29, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2792/0.2792, allocations: 28.81 MB / 318.9 MB, free: 5.828 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 59.91 kB / 386.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2718, allocations: 56.41 MB / 442.6 MB, free: 39.73 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.002779/0.2746, allocations: 2.405 MB / 445 MB, free: 38.58 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008056/0.2755, allocations: 424.1 kB / 445.4 MB, free: 38.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.2756, allocations: 6.844 kB / 445.4 MB, free: 38.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.2758, allocations: 31.89 kB / 445.5 MB, free: 38.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.2759, allocations: 9.531 kB / 445.5 MB, free: 38.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004093/0.2763, allocations: 128.5 kB / 445.6 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002675/0.2766, allocations: 325 kB / 445.9 MB, free: 38.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002642/0.2769, allocations: 199.5 kB / 446.1 MB, free: 38.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001104/0.277, allocations: 141.8 kB / 446.3 MB, free: 38.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001652/0.2772, allocations: 173.1 kB / 446.4 MB, free: 38.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.629e-05/0.2772, allocations: 34.28 kB / 446.5 MB, free: 38.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.2773, allocations: 60.86 kB / 446.5 MB, free: 38.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.2775, allocations: 131.8 kB / 446.7 MB, free: 38.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.2776, allocations: 218.5 kB / 446.9 MB, free: 38.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002887/0.2779, allocations: 401.3 kB / 447.3 MB, free: 38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.2779, allocations: 0 / 447.3 MB, free: 38 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.2779, allocations: 0 / 447.3 MB, free: 38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.2779, allocations: 0 / 447.3 MB, free: 38 MB / 366.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.0009396/0.2788, allocations: 0.7881 MB / 448 MB, free: 37.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.2789, allocations: 8.5 kB / 448.1 MB, free: 37.46 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.718e-05/0.279, allocations: 83.14 kB / 448.1 MB, free: 37.42 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.717e-05/0.279, allocations: 63.78 kB / 448.2 MB, free: 37.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.2792, allocations: 285.3 kB / 448.5 MB, free: 37.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.2792, allocations: 35.25 kB / 448.5 MB, free: 37.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.487e-05/0.2793, allocations: 42.31 kB / 448.6 MB, free: 37.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006085/0.2799, allocations: 471 kB / 449 MB, free: 36.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.2799, allocations: 3.938 kB / 449 MB, free: 36.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.949e-05/0.2799, allocations: 17.44 kB / 449 MB, free: 36.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.28, allocations: 10.62 kB / 449 MB, free: 36.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005506/0.2805, allocations: 381.4 kB / 449.4 MB, free: 36.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.2818, allocations: 1.167 MB / 450.6 MB, free: 36.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000987/0.2828, allocations: 0.5206 MB / 451.1 MB, free: 35.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/0.283, allocations: 174.5 kB / 451.3 MB, free: 35.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.834e-05/0.2831, allocations: 37.62 kB / 451.3 MB, free: 35.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004082/0.2835, allocations: 259 kB / 451.6 MB, free: 35.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 1.864e-06/0.2835, allocations: 3.938 kB / 451.6 MB, free: 35.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=41): time 0.00086/0.2844, allocations: 0.5644 MB / 452.1 MB, free: 35.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.2844, allocations: 85.77 kB / 452.2 MB, free: 35.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002547/0.2847, allocations: 351.4 kB / 452.6 MB, free: 35.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.2847, allocations: 35.33 kB / 452.6 MB, free: 35.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.65e-05/0.2848, allocations: 258.2 kB / 452.8 MB, free: 35.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.853e-05/0.2849, allocations: 129.6 kB / 453 MB, free: 34.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.405e-05/0.285, allocations: 62.16 kB / 453 MB, free: 34.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.365e-05/0.285, allocations: 350.8 kB / 453.4 MB, free: 34.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002235/0.2853, allocations: 150.7 kB / 453.5 MB, free: 34.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.2855, allocations: 181 kB / 453.7 MB, free: 34.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002423/0.2879, allocations: 0.6758 MB / 454.4 MB, free: 34.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.288, allocations: 0 / 454.4 MB, free: 34.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005635/0.2885, allocations: 427.8 kB / 454.8 MB, free: 34.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.2885, allocations: 6.125 kB / 454.8 MB, free: 34.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.2886, allocations: 0 / 454.8 MB, free: 34.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.2886, allocations: 10.97 kB / 454.8 MB, free: 34.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002849/0.2889, allocations: 71.42 kB / 454.9 MB, free: 34.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.2889, allocations: 2.938 kB / 454.9 MB, free: 34.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001441/0.289, allocations: 28.19 kB / 454.9 MB, free: 34.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.2891, allocations: 15.55 kB / 454.9 MB, free: 34.06 MB / 366.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.0002064/0.2893, allocations: 197.3 kB / 455.1 MB, free: 33.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.213e-05/0.2893, allocations: 38.41 kB / 455.2 MB, free: 33.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006614/0.29, allocations: 460.8 kB / 455.6 MB, free: 33.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.29, allocations: 9.156 kB / 455.6 MB, free: 33.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.29, allocations: 0 / 455.6 MB, free: 33.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.29, allocations: 5.844 kB / 455.6 MB, free: 33.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003555/0.2904, allocations: 0.5038 MB / 456.1 MB, free: 33.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.2904, allocations: 2.469 kB / 456.1 MB, free: 33.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/0.2907, allocations: 66.67 kB / 456.2 MB, free: 33.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.2907, allocations: 2.875 kB / 456.2 MB, free: 33.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.2907, allocations: 6.844 kB / 456.2 MB, free: 33.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.2907, allocations: 6.812 kB / 456.2 MB, free: 33.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2907, allocations: 0 / 456.2 MB, free: 33.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005624/0.2913, allocations: 462.8 kB / 456.7 MB, free: 33.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.273e-05/0.2913, allocations: 112.5 kB / 456.8 MB, free: 33.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.36e-05/0.2914, allocations: 14.14 kB / 456.8 MB, free: 33.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.2915, allocations: 17.16 kB / 456.8 MB, free: 33.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.201e-05/0.2916, allocations: 22.53 kB / 456.8 MB, free: 33.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.2916, allocations: 20 kB / 456.8 MB, free: 33.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001635/0.2918, allocations: 256.6 kB / 457.1 MB, free: 32.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2918, allocations: 0 / 457.1 MB, free: 32.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002788/0.2921, allocations: 92.56 kB / 457.2 MB, free: 32.88 MB / 366.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.001056/0.2932, allocations: 1.235 MB / 458.4 MB, free: 32.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006009/0.2938, allocations: 383.2 kB / 458.8 MB, free: 31.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2938, allocations: 0 / 458.8 MB, free: 31.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002665/0.2941, allocations: 199.6 kB / 459 MB, free: 31.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.2943, allocations: 28.12 kB / 459 MB, free: 31.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003518/0.2978, allocations: 4.01 MB / 463 MB, free: 29.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.2981, allocations: 0.8577 MB / 463.9 MB, free: 28.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001208/0.2982, allocations: 29.39 kB / 463.9 MB, free: 28.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/0.2984, allocations: 171.5 kB / 464.1 MB, free: 28.66 MB / 366.1 MB Notification: Performance of SimCode: time 8.71e-07/0.2984, allocations: 0 / 464.1 MB, free: 28.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1573/0.4557, allocations: 6.177 MB / 470.3 MB, free: 28.04 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000219/0.456, allocations: 203.2 kB / 470.5 MB, free: 27.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.033/2.489, allocations: 0 / 470.5 MB, free: 27.79 MB / 366.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)