Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_HydrogenotrophicMethanogenesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_HydrogenotrophicMethanogenesis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.08843/0.08843, allocations: 15.26 MB / 22.73 MB, free: 0.9492 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 188.9 kB / 27.52 MB, free: 6.109 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.233/1.233, allocations: 221.5 MB / 253.7 MB, free: 10.4 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009048/0.0009049, allocations: 86.64 kB / 308.8 MB, free: 10.43 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.76e-05/1.761e-05, allocations: 2.75 kB / 369.7 MB, free: 53.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08537/0.0854, allocations: 54.64 MB / 424.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3325/0.418, allocations: 99.48 MB / 0.5115 GB, free: 12.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/0.4182, allocations: 69.42 kB / 0.5116 GB, free: 12.22 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System solution.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System CH4.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$CH4. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System CO2.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$CO2. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H2O.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H2O. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H2.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H2. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.1023/0.5206, allocations: 47.73 MB / 0.5582 GB, free: 15.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.5206, allocations: 0 / 0.5582 GB, free: 15.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.935e-05/0.5206, allocations: 23.09 kB / 0.5582 GB, free: 15.72 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.002504/0.5232, allocations: 1.547 MB / 0.5597 GB, free: 14.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.5232, allocations: 15.73 kB / 0.5597 GB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009262/0.5241, allocations: 332.2 kB / 0.5601 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/0.5254, allocations: 0.9015 MB / 0.5609 GB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.877e-05/0.5255, allocations: 77.66 kB / 0.561 GB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.5257, allocations: 72.38 kB / 0.5611 GB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00279/0.5285, allocations: 2.732 MB / 0.5638 GB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001877/0.5303, allocations: 1.454 MB / 0.5652 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.5304, allocations: 0 / 0.5652 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.052e-05/0.5305, allocations: 0 / 0.5652 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.5305, allocations: 28 kB / 0.5652 GB, free: 10.68 MB / 378.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007/0.5375, allocations: 5.558 MB / 0.5706 GB, free: 4.992 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00312/0.5406, allocations: 2.729 MB / 0.5733 GB, free: 2.184 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009754/0.5416, allocations: 0.9484 MB / 0.5742 GB, free: 1.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004299/0.542, allocations: 330.7 kB / 0.5745 GB, free: 0.918 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.5421, allocations: 47.88 kB / 0.5746 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of pre-optimization done (n=129): time 2.395e-06/0.5421, allocations: 3.938 kB / 0.5746 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of matching and sorting (n=175): time 0.02563/0.5677, allocations: 8.615 MB / 0.583 GB, free: 8.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.845e-05/0.5678, allocations: 69.41 kB / 0.5831 GB, free: 8.148 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006773/0.5685, allocations: 0.5975 MB / 0.5836 GB, free: 7.547 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.438e-05/0.5686, allocations: 25.7 kB / 0.5837 GB, free: 7.516 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002789/0.5689, allocations: 469.2 kB / 0.5841 GB, free: 7.051 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000419/0.5693, allocations: 0.5579 MB / 0.5847 GB, free: 6.484 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.801e-05/0.5694, allocations: 0 / 0.5847 GB, free: 6.484 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.5696, allocations: 361.9 kB / 0.585 GB, free: 6.125 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001303/0.5709, allocations: 1.113 MB / 0.5861 GB, free: 5.012 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001326/0.5722, allocations: 1.281 MB / 0.5873 GB, free: 3.695 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002722/0.5749, allocations: 1.472 MB / 0.5888 GB, free: 2.227 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.575, allocations: 0 / 0.5888 GB, free: 2.227 MB / 394.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.006788/0.5817, allocations: 3.274 MB / 0.592 GB, free: 14.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.5818, allocations: 8 kB / 0.592 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.5818, allocations: 4.406 kB / 0.592 GB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002399/0.5842, allocations: 410.1 kB / 0.5924 GB, free: 14.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/0.5859, allocations: 363.5 kB / 0.5927 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005075/0.591, allocations: 4.207 MB / 0.5968 GB, free: 9.691 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.5926, allocations: 147.7 kB / 0.597 GB, free: 9.547 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.5928, allocations: 79.91 kB / 0.5971 GB, free: 9.469 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CH4.solution.n:DUMMY_STATE(flow=false min = 0.0 max = 0.0 unit = "mol" ) "Amount of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CH4.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 174 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 8,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002851/0.5931, allocations: 146.4 kB / 0.5972 GB, free: 9.32 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008836/0.6019, allocations: 3.506 MB / 0.6006 GB, free: 5.793 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/0.6021, allocations: 118.5 kB / 0.6007 GB, free: 5.676 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009256/0.6114, allocations: 3.754 MB / 0.6044 GB, free: 1.898 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008619/0.62, allocations: 3.419 MB / 0.6077 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.62, allocations: 4 kB / 0.6077 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.009e-05/0.62, allocations: 11.92 kB / 0.6078 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01368/0.6337, allocations: 7.603 MB / 0.6152 GB, free: 6.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.6338, allocations: 8.969 kB / 0.6152 GB, free: 6.723 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001525/0.6353, allocations: 339.5 kB / 0.6155 GB, free: 6.391 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004802/0.6401, allocations: 0.9036 MB / 0.6164 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/0.6402, allocations: 39.95 kB / 0.6164 GB, free: 5.438 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009195/0.6494, allocations: 6.46 MB / 0.6227 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005128/0.6546, allocations: 2.365 MB / 0.625 GB, free: 12.22 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01039/0.665, allocations: 5.703 MB / 0.6306 GB, free: 6.207 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003271/0.6653, allocations: 203.7 kB / 0.6308 GB, free: 5.988 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/0.6655, allocations: 15.98 kB / 0.6308 GB, free: 5.973 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/0.6665, allocations: 87.78 kB / 0.6309 GB, free: 5.887 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000246/0.6668, allocations: 165.5 kB / 0.6311 GB, free: 5.727 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.6669, allocations: 67.95 kB / 0.6311 GB, free: 5.66 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005129/0.6674, allocations: 471.1 kB / 0.6316 GB, free: 5.199 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6674, allocations: 0 / 0.6316 GB, free: 5.199 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002447/0.6699, allocations: 0.9915 MB / 0.6325 GB, free: 4.207 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 5 ($STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 164 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 8,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.01227/0.6822, allocations: 9.158 MB / 0.6415 GB, free: 10.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003319/0.6855, allocations: 2.802 MB / 0.6442 GB, free: 8.023 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.6855, allocations: 4 kB / 0.6442 GB, free: 8.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002355/0.6879, allocations: 1.787 MB / 0.646 GB, free: 6.215 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001562/0.6895, allocations: 341.5 kB / 0.6463 GB, free: 5.887 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008603/0.6981, allocations: 3.72 MB / 0.6499 GB, free: 2.016 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008182/0.6989, allocations: 1.221 MB / 0.6511 GB, free: 0.7578 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001013/0.7, allocations: 253.5 kB / 0.6514 GB, free: 0.5078 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008036/0.7008, allocations: 0.5695 MB / 0.6519 GB, free: 15.94 MB / 474.7 MB Notification: Performance of SimCode: time 5.51e-07/0.7008, allocations: 0 / 0.6519 GB, free: 15.94 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.279/0.9798, allocations: 44.44 MB / 0.6953 GB, free: 130 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000142/0.9799, allocations: 144.4 kB / 0.6955 GB, free: 129.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.134/4.114, allocations: 0 / 0.6955 GB, free: 129.8 MB / 474.7 MB (rm -f Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ClimateChange_HydrogenotrophicMethanogenesis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Chemical_Chemical_Examples_ClimateChange_HydrogenotrophicMethanogenesis.fmu > Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis.pipe 2>&1)