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.1133/0.1133, allocations: 15.26 MB / 27.82 MB, free: 5.395 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.001067/0.001067, allocations: 184.6 kB / 32.7 MB, free: 0.5195 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.397/1.397, allocations: 221.4 MB / 258.8 MB, free: 4 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009486/0.0009486, allocations: 100.5 kB / 314 MB, free: 15.79 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 3.006e-05/3.021e-05, allocations: 3.938 kB / 376.6 MB, free: 1.344 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3191, allocations: 54.6 MB / 431.2 MB, free: 50.05 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1245/0.4437, allocations: 100.2 MB / 0.5189 GB, free: 15.11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/0.444, allocations: 68.62 kB / 0.519 GB, free: 15.05 MB / 394.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.1218/0.5658, allocations: 48.41 MB / 0.5662 GB, free: 14.75 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5658, allocations: 0 / 0.5662 GB, free: 14.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.668e-05/0.5659, allocations: 27.94 kB / 0.5663 GB, free: 14.72 MB / 442.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.003206/0.5691, allocations: 1.539 MB / 0.5678 GB, free: 13.13 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.5692, allocations: 12.03 kB / 0.5678 GB, free: 13.12 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002211/0.5694, allocations: 168.9 kB / 0.5679 GB, free: 12.95 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001132/0.5705, allocations: 330.3 kB / 0.5683 GB, free: 12.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001629/0.5722, allocations: 0.9063 MB / 0.5691 GB, free: 11.67 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.5723, allocations: 107.9 kB / 0.5692 GB, free: 11.56 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.5725, allocations: 119.9 kB / 0.5694 GB, free: 11.44 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002825/0.5753, allocations: 1.942 MB / 0.5713 GB, free: 9.453 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.5753, allocations: 3.938 kB / 0.5713 GB, free: 9.449 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001021/0.5755, allocations: 44 kB / 0.5713 GB, free: 9.406 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.833e-05/0.5755, allocations: 24 kB / 0.5713 GB, free: 9.383 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003814/0.5793, allocations: 2.792 MB / 0.574 GB, free: 6.582 MB / 442.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.009443/0.5888, allocations: 5.75 MB / 0.5797 GB, free: 0.6328 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2936/0.8824, allocations: 2.773 MB / 0.5824 GB, free: 99.05 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00128/0.8837, allocations: 0.9835 MB / 0.5833 GB, free: 99.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005736/0.8843, allocations: 329.4 kB / 0.5836 GB, free: 99.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.8844, allocations: 49.09 kB / 0.5837 GB, free: 99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=129): time 2.916e-06/0.8844, allocations: 1.438 kB / 0.5837 GB, free: 99 MB / 442.7 MB Notification: Performance of matching and sorting (n=180): time 0.02902/0.9134, allocations: 8.659 MB / 0.5922 GB, free: 98.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006446/0.9199, allocations: 2.855 MB / 0.5949 GB, free: 96.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/0.921, allocations: 0.6624 MB / 0.5956 GB, free: 96.78 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000291/0.9213, allocations: 58.45 kB / 0.5956 GB, free: 96.75 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003203/0.9216, allocations: 465.5 kB / 0.5961 GB, free: 96.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005734/0.9222, allocations: 0.5976 MB / 0.5967 GB, free: 96.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.275e-05/0.9223, allocations: 29.59 kB / 0.5967 GB, free: 96.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.9224, allocations: 367.3 kB / 0.597 GB, free: 95.97 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001896/0.9243, allocations: 1.16 MB / 0.5982 GB, free: 95.96 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001957/0.9263, allocations: 1.34 MB / 0.5995 GB, free: 95.84 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001946/0.9283, allocations: 1.267 MB / 0.6007 GB, free: 95.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.9283, allocations: 1.125 kB / 0.6007 GB, free: 95.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.007357/0.9356, allocations: 3.187 MB / 0.6038 GB, free: 95.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.9357, allocations: 5.844 kB / 0.6038 GB, free: 95.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.911e-05/0.9357, allocations: 3.984 kB / 0.6038 GB, free: 95.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002839/0.9386, allocations: 442.1 kB / 0.6043 GB, free: 95.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002139/0.9407, allocations: 379.3 kB / 0.6046 GB, free: 95.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005833/0.9466, allocations: 4.323 MB / 0.6089 GB, free: 92.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002258/0.9489, allocations: 183.3 kB / 0.609 GB, free: 92.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002307/0.9491, allocations: 80.41 kB / 0.6091 GB, free: 92.27 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 179 * 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.0003573/0.9495, allocations: 190.2 kB / 0.6093 GB, free: 92.11 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002869/0.9498, allocations: 117.9 kB / 0.6094 GB, free: 92.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009043/0.9588, allocations: 3.708 MB / 0.613 GB, free: 90.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007899/0.9668, allocations: 3.324 MB / 0.6163 GB, free: 89.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/0.9668, allocations: 0 / 0.6163 GB, free: 89.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.958e-05/0.9669, allocations: 12.78 kB / 0.6163 GB, free: 89.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01401/0.9809, allocations: 7.693 MB / 0.6238 GB, free: 86.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-05/0.981, allocations: 10.53 kB / 0.6238 GB, free: 86.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001697/0.9827, allocations: 344.2 kB / 0.6241 GB, free: 86.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005206/0.9879, allocations: 0.9551 MB / 0.6251 GB, free: 86.48 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002789/0.9882, allocations: 61.64 kB / 0.6251 GB, free: 86.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009259/0.9975, allocations: 6.443 MB / 0.6314 GB, free: 82.24 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005544/1.003, allocations: 2.464 MB / 0.6338 GB, free: 80.46 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01109/1.014, allocations: 5.628 MB / 0.6393 GB, free: 77.64 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006693/1.015, allocations: 223.7 kB / 0.6395 GB, free: 77.46 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003872/1.015, allocations: 42.81 kB / 0.6396 GB, free: 77.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/1.017, allocations: 124.4 kB / 0.6397 GB, free: 77.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004268/1.017, allocations: 158.1 kB / 0.6398 GB, free: 77.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001721/1.017, allocations: 72.69 kB / 0.6399 GB, free: 77.36 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007286/1.018, allocations: 0.5206 MB / 0.6404 GB, free: 77.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.71e-07/1.018, allocations: 0 / 0.6404 GB, free: 77.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003495/1.022, allocations: 1.013 MB / 0.6414 GB, free: 76.99 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 (172): * Single equations (assignments): 169 * 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.01251/1.034, allocations: 9.104 MB / 0.6503 GB, free: 71.38 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004289/1.039, allocations: 2.952 MB / 0.6532 GB, free: 68.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/1.039, allocations: 4 kB / 0.6532 GB, free: 68.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002754/1.041, allocations: 1.876 MB / 0.655 GB, free: 67.15 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00219/1.044, allocations: 382.7 kB / 0.6554 GB, free: 66.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009809/1.053, allocations: 3.93 MB / 0.6592 GB, free: 63.41 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007681/1.054, allocations: 1.231 MB / 0.6604 GB, free: 62.34 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001367/1.056, allocations: 252.6 kB / 0.6607 GB, free: 62.15 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001007/1.057, allocations: 0.572 MB / 0.6612 GB, free: 61.65 MB / 442.7 MB Notification: Performance of SimCode: time 1.583e-06/1.057, allocations: 4 kB / 0.6612 GB, free: 61.65 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08033/1.137, allocations: 48.74 MB / 0.7088 GB, free: 18.33 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002101/1.137, allocations: 188.2 kB / 0.709 GB, free: 18.11 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.546/4.683, allocations: 0 / 0.709 GB, free: 18.11 MB / 442.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)