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.001068/0.001068, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001053/0.001054, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.28/1.28, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2441/0.2441, allocations: 28.81 MB / 319.2 MB, free: 5.703 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 64.08 kB / 386.7 MB, free: 3.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2235, allocations: 56.42 MB / 443.1 MB, free: 39.73 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.002484/0.2261, allocations: 2.356 MB / 445.5 MB, free: 38.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006585/0.2267, allocations: 436.8 kB / 445.9 MB, free: 38.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.2268, allocations: 5.5 kB / 445.9 MB, free: 38.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.227, allocations: 44.47 kB / 446 MB, free: 38.4 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001143/0.2271, allocations: 36.83 kB / 446 MB, free: 38.37 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00034/0.2274, allocations: 148.6 kB / 446.2 MB, free: 38.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001941/0.2276, allocations: 314.4 kB / 446.5 MB, free: 38.32 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002403/0.2279, allocations: 205.8 kB / 446.7 MB, free: 38.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.226e-05/0.228, allocations: 141.5 kB / 446.8 MB, free: 38.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.2281, allocations: 173.9 kB / 447 MB, free: 38.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.461e-05/0.2282, allocations: 34.62 kB / 447 MB, free: 38.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.758e-05/0.2283, allocations: 61.88 kB / 447.1 MB, free: 38.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.747e-05/0.2284, allocations: 132.6 kB / 447.2 MB, free: 38.17 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.166e-05/0.2285, allocations: 210.8 kB / 447.4 MB, free: 38.08 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.2287, allocations: 399.2 kB / 447.8 MB, free: 37.97 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2287, allocations: 0 / 447.8 MB, free: 37.97 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2287, allocations: 0 / 447.8 MB, free: 37.97 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.742e-06/0.2287, allocations: 0 / 447.8 MB, free: 37.97 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.0009081/0.2296, allocations: 0.7874 MB / 448.6 MB, free: 37.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.882e-05/0.2297, allocations: 8.5 kB / 448.6 MB, free: 37.42 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.325e-05/0.2298, allocations: 94.22 kB / 448.7 MB, free: 37.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.763e-05/0.2298, allocations: 60.47 kB / 448.7 MB, free: 37.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.23, allocations: 280.1 kB / 449 MB, free: 37.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.622e-05/0.23, allocations: 41.06 kB / 449.1 MB, free: 37.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.732e-05/0.23, allocations: 48.62 kB / 449.1 MB, free: 37 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005666/0.2306, allocations: 467.9 kB / 449.6 MB, free: 36.81 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.2306, allocations: 3.938 kB / 449.6 MB, free: 36.81 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.762e-05/0.2307, allocations: 18.91 kB / 449.6 MB, free: 36.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.759e-06/0.2307, allocations: 11.38 kB / 449.6 MB, free: 36.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005537/0.2312, allocations: 371.3 kB / 450 MB, free: 36.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.2324, allocations: 1.166 MB / 451.1 MB, free: 36.03 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.2334, allocations: 0.5146 MB / 451.6 MB, free: 35.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002534/0.2337, allocations: 182.1 kB / 451.8 MB, free: 35.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.196e-05/0.2337, allocations: 36.2 kB / 451.9 MB, free: 35.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003656/0.2341, allocations: 264.6 kB / 452.1 MB, free: 35.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 1.572e-06/0.2341, allocations: 0 / 452.1 MB, free: 35.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=41): time 0.000845/0.235, allocations: 0.5682 MB / 452.7 MB, free: 35.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.714e-05/0.235, allocations: 79.95 kB / 452.8 MB, free: 35.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002255/0.2352, allocations: 352.6 kB / 453.1 MB, free: 35.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.2353, allocations: 36.36 kB / 453.1 MB, free: 35.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.528e-05/0.2354, allocations: 254.3 kB / 453.4 MB, free: 34.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.786e-05/0.2354, allocations: 132.4 kB / 453.5 MB, free: 34.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.511e-05/0.2355, allocations: 58 kB / 453.6 MB, free: 34.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.12e-05/0.2355, allocations: 350.7 kB / 453.9 MB, free: 34.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.2358, allocations: 153.2 kB / 454.1 MB, free: 34.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/0.236, allocations: 181.1 kB / 454.2 MB, free: 34.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002332/0.2384, allocations: 0.666 MB / 454.9 MB, free: 34.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2384, allocations: 0 / 454.9 MB, free: 34.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005595/0.2389, allocations: 430.7 kB / 455.3 MB, free: 34.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.239, allocations: 5.656 kB / 455.3 MB, free: 34.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.239, allocations: 6.781 kB / 455.3 MB, free: 34.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.239, allocations: 3.938 kB / 455.3 MB, free: 34.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002743/0.2393, allocations: 72.69 kB / 455.4 MB, free: 34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.2393, allocations: 2.656 kB / 455.4 MB, free: 34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001389/0.2394, allocations: 35.53 kB / 455.4 MB, free: 33.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.2394, allocations: 12.12 kB / 455.5 MB, free: 33.98 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.0001681/0.2396, allocations: 184.9 kB / 455.6 MB, free: 33.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.22e-05/0.2397, allocations: 41.34 kB / 455.7 MB, free: 33.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006617/0.2403, allocations: 459.6 kB / 456.1 MB, free: 33.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.2404, allocations: 9.062 kB / 456.1 MB, free: 33.63 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.2404, allocations: 0 / 456.1 MB, free: 33.63 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.2404, allocations: 6.016 kB / 456.1 MB, free: 33.63 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003335/0.2407, allocations: 0.5054 MB / 456.7 MB, free: 33.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.2407, allocations: 0 / 456.7 MB, free: 33.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002589/0.241, allocations: 66.91 kB / 456.7 MB, free: 33.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.241, allocations: 2.594 kB / 456.7 MB, free: 33.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.241, allocations: 9.875 kB / 456.7 MB, free: 33.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.241, allocations: 6.594 kB / 456.7 MB, free: 33.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.241, allocations: 3.984 kB / 456.7 MB, free: 33.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005961/0.2416, allocations: 466.3 kB / 457.2 MB, free: 33.1 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.987e-05/0.2417, allocations: 111.5 kB / 457.3 MB, free: 32.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.158e-05/0.2417, allocations: 10.14 kB / 457.3 MB, free: 32.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.2419, allocations: 17.47 kB / 457.3 MB, free: 32.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.489e-05/0.2419, allocations: 27.89 kB / 457.4 MB, free: 32.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.242, allocations: 11.73 kB / 457.4 MB, free: 32.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001642/0.2421, allocations: 256.9 kB / 457.6 MB, free: 32.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2421, allocations: 0 / 457.6 MB, free: 32.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002648/0.2424, allocations: 93.16 kB / 457.7 MB, free: 32.79 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.001029/0.2434, allocations: 1.229 MB / 458.9 MB, free: 31.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005979/0.2441, allocations: 381 kB / 459.3 MB, free: 31.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2441, allocations: 0 / 459.3 MB, free: 31.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002647/0.2443, allocations: 197.9 kB / 459.5 MB, free: 31.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.2446, allocations: 34.89 kB / 459.5 MB, free: 31.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/0.248, allocations: 3.807 MB / 463.3 MB, free: 29.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002063/0.2482, allocations: 0.8613 MB / 464.2 MB, free: 28.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001135/0.2484, allocations: 28.94 kB / 464.2 MB, free: 28.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.2485, allocations: 170.2 kB / 464.4 MB, free: 28.79 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2485, allocations: 0 / 464.4 MB, free: 28.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.053/1.301, allocations: 6.299 MB / 470.7 MB, free: 28.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.557/8.858, allocations: 10.42 kB / 470.7 MB, free: 28.05 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)