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.1264/0.1264, allocations: 15.26 MB / 30.21 MB, free: 3.305 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001157, allocations: 176.2 kB / 35.29 MB, free: 2.379 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.432/1.432, allocations: 223.2 MB / 263.4 MB, free: 6.961 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.0009356/0.0009356, allocations: 99.02 kB / 318.8 MB, free: 3.836 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003291/0.0003296, allocations: 7.312 kB / 384 MB, free: 50.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1089, allocations: 54.65 MB / 438.7 MB, free: 364 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4056/0.5146, allocations: 100.2 MB / 0.5262 GB, free: 15.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.5149, allocations: 70.22 kB / 0.5263 GB, free: 15.48 MB / 378.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.1114/0.6262, allocations: 48.55 MB / 0.5737 GB, free: 20.05 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.6263, allocations: 0 / 0.5737 GB, free: 20.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.752e-05/0.6263, allocations: 26.78 kB / 0.5738 GB, free: 20.04 MB / 394.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.00307/0.6294, allocations: 1.667 MB / 0.5754 GB, free: 18.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.6295, allocations: 15.41 kB / 0.5754 GB, free: 18.91 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001799/0.6297, allocations: 172.4 kB / 0.5756 GB, free: 18.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001067/0.6307, allocations: 327.2 kB / 0.5759 GB, free: 18.7 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001407/0.6321, allocations: 0.9072 MB / 0.5768 GB, free: 18.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.101e-05/0.6322, allocations: 110.2 kB / 0.5769 GB, free: 18.15 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000143/0.6324, allocations: 119.1 kB / 0.577 GB, free: 18.14 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002162/0.6346, allocations: 1.968 MB / 0.5789 GB, free: 17.69 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.6346, allocations: 4 kB / 0.5789 GB, free: 17.69 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.319e-05/0.6347, allocations: 42.69 kB / 0.5789 GB, free: 17.69 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.793e-05/0.6347, allocations: 26.75 kB / 0.579 GB, free: 17.69 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002866/0.6376, allocations: 2.827 MB / 0.5817 GB, free: 17.28 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.007921/0.6455, allocations: 5.742 MB / 0.5873 GB, free: 14.81 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003163/0.6487, allocations: 2.804 MB / 0.5901 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004275/0.6492, allocations: 327.4 kB / 0.5904 GB, free: 13.39 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.6492, allocations: 55.52 kB / 0.5904 GB, free: 13.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=129): time 4.038e-06/0.6492, allocations: 0 / 0.5904 GB, free: 13.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=170): time 0.02455/0.6738, allocations: 8.442 MB / 0.5987 GB, free: 5.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.6739, allocations: 69.41 kB / 0.5987 GB, free: 5.602 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.6749, allocations: 0.6717 MB / 0.5994 GB, free: 4.926 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002023/0.6752, allocations: 49.7 kB / 0.5995 GB, free: 4.871 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003718/0.6755, allocations: 469.2 kB / 0.5999 GB, free: 4.406 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005559/0.6761, allocations: 0.5659 MB / 0.6005 GB, free: 3.832 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.525e-05/0.6762, allocations: 28 kB / 0.6005 GB, free: 3.805 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.6764, allocations: 365.9 kB / 0.6008 GB, free: 3.441 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.6778, allocations: 0.9878 MB / 0.6018 GB, free: 2.453 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00153/0.6793, allocations: 1.162 MB / 0.6029 GB, free: 1.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.6808, allocations: 1.076 MB / 0.604 GB, free: 184 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.6808, allocations: 4 kB / 0.604 GB, free: 180 kB / 394.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.006629/0.6874, allocations: 2.81 MB / 0.6067 GB, free: 13.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/0.6875, allocations: 19.88 kB / 0.6067 GB, free: 13.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.6875, allocations: 0 / 0.6067 GB, free: 13.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003318/0.6909, allocations: 462.5 kB / 0.6072 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002043/0.6929, allocations: 351.5 kB / 0.6075 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006886/0.6998, allocations: 4.411 MB / 0.6118 GB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/0.7013, allocations: 71.88 kB / 0.6119 GB, free: 7.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/0.7014, allocations: 59.97 kB / 0.612 GB, free: 7.691 MB / 410.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (177): * Single equations (assignments): 174 * 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,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006487/0.7021, allocations: 301.5 kB / 0.6122 GB, free: 7.387 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000243/0.7024, allocations: 114.6 kB / 0.6124 GB, free: 7.273 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007111/0.7095, allocations: 2.965 MB / 0.6152 GB, free: 4.289 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.795e-05/0.7095, allocations: 20 kB / 0.6153 GB, free: 4.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.7095, allocations: 0 / 0.6153 GB, free: 4.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.647e-05/0.7096, allocations: 11.95 kB / 0.6153 GB, free: 4.258 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/0.7209, allocations: 6.009 MB / 0.6211 GB, free: 14.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.437e-05/0.7209, allocations: 7.953 kB / 0.6212 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/0.7226, allocations: 335.6 kB / 0.6215 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003151/0.7258, allocations: 462.3 kB / 0.6219 GB, free: 13.31 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000192/0.726, allocations: 51.97 kB / 0.622 GB, free: 13.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006433/0.7325, allocations: 4.357 MB / 0.6262 GB, free: 8.609 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/0.7325, allocations: 7.938 kB / 0.6262 GB, free: 8.602 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009429/0.7419, allocations: 4.679 MB / 0.6308 GB, free: 3.684 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006387/0.7426, allocations: 199.6 kB / 0.631 GB, free: 3.469 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001979/0.7428, allocations: 36 kB / 0.631 GB, free: 3.434 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009252/0.7438, allocations: 67.88 kB / 0.6311 GB, free: 3.367 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002702/0.7441, allocations: 137 kB / 0.6312 GB, free: 3.234 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/0.7442, allocations: 59.98 kB / 0.6313 GB, free: 3.176 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008056/0.745, allocations: 0.5302 MB / 0.6318 GB, free: 2.641 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.745, allocations: 0 / 0.6318 GB, free: 2.641 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002713/0.7477, allocations: 0.804 MB / 0.6326 GB, free: 1.836 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 5 (solution.temperature,CH4.logn,CO2.logn,H2O.logn,H2.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 170 * 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 3,1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.01239/0.7601, allocations: 7.664 MB / 0.6401 GB, free: 9.973 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004307/0.7645, allocations: 2.595 MB / 0.6426 GB, free: 7.355 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.136e-06/0.7645, allocations: 0 / 0.6426 GB, free: 7.355 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002254/0.7668, allocations: 1.478 MB / 0.644 GB, free: 5.852 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001912/0.7687, allocations: 360.1 kB / 0.6444 GB, free: 5.504 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008422/0.7771, allocations: 6.814 MB / 0.651 GB, free: 14.34 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009057/0.7781, allocations: 1.179 MB / 0.6522 GB, free: 13.13 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001204/0.7793, allocations: 229.8 kB / 0.6524 GB, free: 12.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008366/0.7801, allocations: 0.5266 MB / 0.6529 GB, free: 12.38 MB / 458.7 MB Notification: Performance of SimCode: time 5.46e-06/0.7802, allocations: 0 / 0.6529 GB, free: 12.38 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2847/1.065, allocations: 42.33 MB / 0.6943 GB, free: 120.2 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002459/1.065, allocations: 218.8 kB / 0.6945 GB, free: 120 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.452/4.517, allocations: 0 / 0.6945 GB, free: 120 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)