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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07286/0.07286, allocations: 15.26 MB / 22.54 MB, free: 1.109 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.0009/0.0009, allocations: 183.4 kB / 27.3 MB, free: 8 kB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.178/1.178, allocations: 221.4 MB / 253.3 MB, free: 10.27 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.0008536/0.0008535, allocations: 92.62 kB / 308.4 MB, free: 10.62 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.2102/0.2111, allocations: 60.74 MB / 369.1 MB, free: 53.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08326/0.2944, allocations: 54.63 MB / 423.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2832/0.5777, allocations: 99.42 MB / 0.5109 GB, free: 8.254 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.578, allocations: 65.55 kB / 0.511 GB, free: 8.254 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: 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.1178/0.6958, allocations: 49.32 MB / 0.5591 GB, free: 10.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.6958, allocations: 8.906 kB / 0.5591 GB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001481/0.6973, allocations: 348.5 kB / 0.5595 GB, free: 10 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002114/0.6994, allocations: 0.9072 MB / 0.5604 GB, free: 9.312 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.6996, allocations: 73.59 kB / 0.5604 GB, free: 9.277 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002475/0.6998, allocations: 71.78 kB / 0.5605 GB, free: 9.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004013/0.7039, allocations: 2.756 MB / 0.5632 GB, free: 7.039 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00222/0.7061, allocations: 1.466 MB / 0.5646 GB, free: 5.531 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.7061, allocations: 0 / 0.5646 GB, free: 5.531 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.586e-05/0.7062, allocations: 0 / 0.5646 GB, free: 5.531 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.525e-05/0.7062, allocations: 28 kB / 0.5647 GB, free: 5.504 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008874/0.7151, allocations: 5.659 MB / 0.5702 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002321/0.7175, allocations: 1.973 MB / 0.5721 GB, free: 13.74 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001121/0.7186, allocations: 0.9505 MB / 0.573 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004847/0.7191, allocations: 332 kB / 0.5734 GB, free: 12.47 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.7192, allocations: 47.81 kB / 0.5734 GB, free: 12.41 MB / 394.7 MB Notification: Performance of pre-optimization done (n=129): time 3.717e-06/0.7192, allocations: 0 / 0.5734 GB, free: 12.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=175): time 0.03108/0.7503, allocations: 8.709 MB / 0.5819 GB, free: 3.695 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.7504, allocations: 69.41 kB / 0.582 GB, free: 3.613 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008657/0.7512, allocations: 0.5974 MB / 0.5826 GB, free: 3.012 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001415/0.7514, allocations: 25.7 kB / 0.5826 GB, free: 2.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.7516, allocations: 357.2 kB / 0.5829 GB, free: 2.625 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005027/0.7521, allocations: 0.5541 MB / 0.5835 GB, free: 2.062 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.758e-05/0.7522, allocations: 0 / 0.5835 GB, free: 2.062 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.7523, allocations: 369.8 kB / 0.5838 GB, free: 1.695 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/0.7537, allocations: 1.117 MB / 0.5849 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/0.7553, allocations: 1.283 MB / 0.5862 GB, free: 15.26 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003314/0.7587, allocations: 1.507 MB / 0.5876 GB, free: 13.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.7587, allocations: 4 kB / 0.5876 GB, free: 13.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.008358/0.7671, allocations: 3.347 MB / 0.5909 GB, free: 10.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.7671, allocations: 4 kB / 0.5909 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.7671, allocations: 4 kB / 0.5909 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002794/0.7699, allocations: 402.5 kB / 0.5913 GB, free: 9.977 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002051/0.772, allocations: 375.5 kB / 0.5916 GB, free: 9.609 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006123/0.7781, allocations: 4.152 MB / 0.5957 GB, free: 5.199 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/0.78, allocations: 103.8 kB / 0.5958 GB, free: 5.098 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002675/0.7803, allocations: 79.92 kB / 0.5959 GB, free: 5.02 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.000366/0.7807, allocations: 143.3 kB / 0.596 GB, free: 4.879 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002951/0.781, allocations: 118.5 kB / 0.5961 GB, free: 4.762 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01126/0.7922, allocations: 3.832 MB / 0.5999 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00993/0.8022, allocations: 3.446 MB / 0.6032 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.8022, allocations: 4 kB / 0.6032 GB, free: 13.44 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.942e-05/0.8023, allocations: 15.86 kB / 0.6033 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01569/0.818, allocations: 7.584 MB / 0.6107 GB, free: 5.719 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.537e-05/0.818, allocations: 8 kB / 0.6107 GB, free: 5.711 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001795/0.8198, allocations: 348.4 kB / 0.611 GB, free: 5.371 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005778/0.8256, allocations: 0.8973 MB / 0.6119 GB, free: 4.465 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001442/0.8258, allocations: 35.95 kB / 0.6119 GB, free: 4.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01039/0.8362, allocations: 6.355 MB / 0.6181 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006084/0.8423, allocations: 2.319 MB / 0.6204 GB, free: 11.37 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0121/0.8544, allocations: 5.77 MB / 0.626 GB, free: 5.289 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01417/0.8686, allocations: 7.823 MB / 0.6337 GB, free: 13.17 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005931/0.8692, allocations: 207.6 kB / 0.6339 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00033/0.8696, allocations: 12 kB / 0.6339 GB, free: 12.94 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/0.8709, allocations: 71.77 kB / 0.6339 GB, free: 12.87 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002193/0.8712, allocations: 121 kB / 0.634 GB, free: 12.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.8713, allocations: 71.95 kB / 0.6341 GB, free: 12.68 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.000695/0.872, allocations: 475.1 kB / 0.6346 GB, free: 12.21 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003786/0.8758, allocations: 1.046 MB / 0.6356 GB, free: 11.16 MB / 458.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.002088/0.8779, allocations: 0.8969 MB / 0.6365 GB, free: 10.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004828/0.8828, allocations: 2.876 MB / 0.6393 GB, free: 7.414 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.8828, allocations: 0 / 0.6393 GB, free: 7.414 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00268/0.8855, allocations: 1.739 MB / 0.641 GB, free: 5.656 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/0.8873, allocations: 325.7 kB / 0.6413 GB, free: 5.344 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008475/0.8958, allocations: 3.253 MB / 0.6445 GB, free: 1.965 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00139/0.8972, allocations: 1.383 MB / 0.6458 GB, free: 0.5508 MB / 458.7 MB Notification: Performance of SimCode: time 2.334e-06/0.8972, allocations: 4 kB / 0.6458 GB, free: 0.5469 MB / 458.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)