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.001327/0.001327, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001546/0.001546, allocations: 188.9 kB / 16.14 MB, free: 6.707 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.215/1.215, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2499/0.2499, allocations: 28.79 MB / 318.7 MB, free: 5.93 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 55.91 kB / 386 MB, free: 3.969 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2411, allocations: 56.42 MB / 442.4 MB, free: 39.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.002601/0.2438, allocations: 2.395 MB / 444.8 MB, free: 38.54 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006977/0.2445, allocations: 432.6 kB / 445.3 MB, free: 38.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.2446, allocations: 2.812 kB / 445.3 MB, free: 38.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.2447, allocations: 32.08 kB / 445.3 MB, free: 38.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001088/0.2448, allocations: 13.44 kB / 445.3 MB, free: 38.36 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.2451, allocations: 122.8 kB / 445.4 MB, free: 38.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001911/0.2453, allocations: 314.4 kB / 445.7 MB, free: 38.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.2456, allocations: 194.2 kB / 445.9 MB, free: 38.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.58e-05/0.2456, allocations: 120.4 kB / 446 MB, free: 38.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.2458, allocations: 172.9 kB / 446.2 MB, free: 38.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.961e-05/0.2458, allocations: 24.34 kB / 446.2 MB, free: 38.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.366e-05/0.2459, allocations: 44.7 kB / 446.3 MB, free: 38.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.246, allocations: 122.6 kB / 446.4 MB, free: 38.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.812e-05/0.2461, allocations: 202.4 kB / 446.6 MB, free: 38.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002321/0.2464, allocations: 385.8 kB / 447 MB, free: 37.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2464, allocations: 0 / 447 MB, free: 37.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.2464, allocations: 0 / 447 MB, free: 37.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.2464, allocations: 0 / 447 MB, free: 37.96 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.0008949/0.2473, allocations: 0.7811 MB / 447.8 MB, free: 37.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.2473, allocations: 8.531 kB / 447.8 MB, free: 37.42 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.466e-05/0.2474, allocations: 91.47 kB / 447.9 MB, free: 37.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.544e-05/0.2475, allocations: 59.38 kB / 447.9 MB, free: 37.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.2476, allocations: 286.7 kB / 448.2 MB, free: 37.06 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.2477, allocations: 39.09 kB / 448.2 MB, free: 37.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.036e-05/0.2477, allocations: 45.53 kB / 448.3 MB, free: 37.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000589/0.2483, allocations: 471.4 kB / 448.7 MB, free: 36.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.2483, allocations: 3.938 kB / 448.7 MB, free: 36.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.783e-05/0.2484, allocations: 21.41 kB / 448.8 MB, free: 36.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.2484, allocations: 10.97 kB / 448.8 MB, free: 36.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005388/0.2489, allocations: 374.4 kB / 449.1 MB, free: 36.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.2502, allocations: 1.168 MB / 450.3 MB, free: 36.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.2512, allocations: 0.5064 MB / 450.8 MB, free: 36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000245/0.2514, allocations: 181.8 kB / 451 MB, free: 35.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.51e-05/0.2515, allocations: 40.64 kB / 451 MB, free: 35.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003984/0.2519, allocations: 266.5 kB / 451.3 MB, free: 35.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 1.983e-06/0.2519, allocations: 0 / 451.3 MB, free: 35.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=41): time 0.0008451/0.2528, allocations: 0.5636 MB / 451.8 MB, free: 35.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.2528, allocations: 82.67 kB / 451.9 MB, free: 35.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000239/0.2531, allocations: 346.9 kB / 452.3 MB, free: 35.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.2531, allocations: 36.48 kB / 452.3 MB, free: 35.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.913e-05/0.2532, allocations: 255.5 kB / 452.6 MB, free: 35.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.364e-05/0.2533, allocations: 135.3 kB / 452.7 MB, free: 35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-05/0.2533, allocations: 55.88 kB / 452.7 MB, free: 34.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.94e-05/0.2534, allocations: 355.3 kB / 453.1 MB, free: 34.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.2536, allocations: 144.7 kB / 453.2 MB, free: 34.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.2538, allocations: 192.8 kB / 453.4 MB, free: 34.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002339/0.2562, allocations: 0.6671 MB / 454.1 MB, free: 34.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2562, allocations: 0 / 454.1 MB, free: 34.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005496/0.2568, allocations: 432.8 kB / 454.5 MB, free: 34.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.2568, allocations: 6.938 kB / 454.5 MB, free: 34.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.2568, allocations: 0 / 454.5 MB, free: 34.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.2568, allocations: 6.688 kB / 454.5 MB, free: 34.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002706/0.2571, allocations: 71.72 kB / 454.6 MB, free: 34.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.2571, allocations: 6.75 kB / 454.6 MB, free: 34.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.2573, allocations: 35.14 kB / 454.6 MB, free: 34.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.2573, allocations: 12.09 kB / 454.6 MB, free: 34.11 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.0001837/0.2575, allocations: 185.7 kB / 454.8 MB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.01e-05/0.2575, allocations: 36.12 kB / 454.9 MB, free: 33.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006418/0.2582, allocations: 466 kB / 455.3 MB, free: 33.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.2582, allocations: 9.312 kB / 455.3 MB, free: 33.76 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2582, allocations: 0 / 455.3 MB, free: 33.76 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.2582, allocations: 5.688 kB / 455.3 MB, free: 33.76 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000356/0.2586, allocations: 0.4972 MB / 455.8 MB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2586, allocations: 4.281 kB / 455.8 MB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002503/0.2588, allocations: 65.31 kB / 455.9 MB, free: 33.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.2588, allocations: 6.875 kB / 455.9 MB, free: 33.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.2589, allocations: 10.41 kB / 455.9 MB, free: 33.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.2589, allocations: 6.656 kB / 455.9 MB, free: 33.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2589, allocations: 0 / 455.9 MB, free: 33.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000567/0.2594, allocations: 463.6 kB / 456.4 MB, free: 33.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.243e-05/0.2595, allocations: 116.4 kB / 456.5 MB, free: 33.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.344e-05/0.2595, allocations: 14.16 kB / 456.5 MB, free: 33.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.2597, allocations: 17.12 kB / 456.5 MB, free: 33.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.342e-05/0.2598, allocations: 25.22 kB / 456.5 MB, free: 33.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.2598, allocations: 8.344 kB / 456.5 MB, free: 33.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001661/0.26, allocations: 253.2 kB / 456.8 MB, free: 32.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.26, allocations: 0 / 456.8 MB, free: 32.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000272/0.2603, allocations: 99.34 kB / 456.9 MB, free: 32.93 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.001016/0.2613, allocations: 1.223 MB / 458.1 MB, free: 32.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005097/0.2618, allocations: 375 kB / 458.5 MB, free: 32.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2618, allocations: 0 / 458.5 MB, free: 32.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000259/0.2621, allocations: 195.8 kB / 458.7 MB, free: 31.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002324/0.2623, allocations: 38.72 kB / 458.7 MB, free: 31.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003402/0.2657, allocations: 4.005 MB / 462.7 MB, free: 29.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002013/0.266, allocations: 0.8501 MB / 463.6 MB, free: 28.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.2661, allocations: 32.3 kB / 463.6 MB, free: 28.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.2662, allocations: 176.8 kB / 463.8 MB, free: 28.73 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2662, allocations: 0 / 463.8 MB, free: 28.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.749/1.015, allocations: 6.035 MB / 469.8 MB, free: 28.11 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001987/1.016, allocations: 197.2 kB / 470 MB, free: 27.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.727/3.742, allocations: 0 / 470 MB, free: 27.86 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)