Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.WaterElectrolysis.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: translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") [: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.06588/0.06588, allocations: 15.27 MB / 22.54 MB, free: 1.102 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.0009181/0.0009181, allocations: 191.5 kB / 27.31 MB, free: 6.18 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.081/1.081, allocations: 221.4 MB / 253.3 MB, free: 11.28 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.0009005/0.0009005, allocations: 92.66 kB / 308.4 MB, free: 11.2 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.521e-06/5.541e-06, allocations: 1.031 kB / 369 MB, free: 54.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07001/0.07003, allocations: 54.64 MB / 423.7 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2325/0.3026, allocations: 104.3 MB / 0.5156 GB, free: 8.434 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001543/0.3028, allocations: 70.17 kB / 0.5157 GB, free: 8.434 MB / 362.7 MB [/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 O2_gas.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$O2_gas. 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_gas.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_gas. 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:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System anode.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$anode. 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:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System cathode.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$cathode. 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:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System water.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$water. 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 electrone.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.ElectronTransfer. 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 electrone1.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.ElectronTransfer. 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:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System air.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$air. 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 liquidWater.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$liquidWater. 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: time 0.1217/0.4245, allocations: 56.55 MB / 0.5709 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.959e-05/0.4246, allocations: 51.22 kB / 0.571 GB, free: 0.7812 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: 501 * Number of variables: 501 Notification: Performance of Generate backend data structure: time 0.004269/0.4289, allocations: 2.193 MB / 0.5731 GB, free: 14.55 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.883e-05/0.4289, allocations: 8.031 kB / 0.5731 GB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001681/0.4306, allocations: 0.5159 MB / 0.5736 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002182/0.4328, allocations: 1.255 MB / 0.5748 GB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001012/0.4329, allocations: 113.6 kB / 0.5749 GB, free: 12.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002367/0.4331, allocations: 120 kB / 0.5751 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003987/0.4371, allocations: 3.307 MB / 0.5783 GB, free: 9.191 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002782/0.4399, allocations: 2.105 MB / 0.5803 GB, free: 7.023 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.576e-05/0.44, allocations: 3.938 kB / 0.5803 GB, free: 7.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/0.4401, allocations: 8 kB / 0.5804 GB, free: 7.012 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.766e-05/0.4401, allocations: 48 kB / 0.5804 GB, free: 6.965 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009962/0.4501, allocations: 8.812 MB / 0.589 GB, free: 13.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001419/0.4515, allocations: 1.366 MB / 0.5903 GB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009827/0.4525, allocations: 0.9709 MB / 0.5913 GB, free: 11.53 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004402/0.453, allocations: 394.8 kB / 0.5917 GB, free: 11.16 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.453, allocations: 55.81 kB / 0.5917 GB, free: 11.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 2.805e-06/0.453, allocations: 0 / 0.5917 GB, free: 11.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=166): time 0.02811/0.4811, allocations: 8.703 MB / 0.6002 GB, free: 2.344 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.4812, allocations: 124.1 kB / 0.6003 GB, free: 2.199 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.4823, allocations: 0.9174 MB / 0.6012 GB, free: 1.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.89e-05/0.4824, allocations: 25.7 kB / 0.6013 GB, free: 1.238 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003621/0.4827, allocations: 0.7672 MB / 0.602 GB, free: 468 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003642/0.4831, allocations: 0.539 MB / 0.6025 GB, free: 15.91 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.4832, allocations: 0 / 0.6025 GB, free: 15.91 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.4833, allocations: 381.8 kB / 0.6029 GB, free: 15.53 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.4845, allocations: 1.05 MB / 0.6039 GB, free: 14.47 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.486, allocations: 1.58 MB / 0.6055 GB, free: 12.65 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002992/0.489, allocations: 1.534 MB / 0.607 GB, free: 11.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.489, allocations: 8 kB / 0.607 GB, free: 11.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=256) (initialization): time 0.007789/0.4968, allocations: 3.571 MB / 0.6105 GB, free: 7.512 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.4968, allocations: 12.06 kB / 0.6105 GB, free: 7.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/0.4969, allocations: 16 kB / 0.6105 GB, free: 7.484 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003154/0.5, allocations: 0.5389 MB / 0.611 GB, free: 6.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001937/0.502, allocations: 471.2 kB / 0.6115 GB, free: 6.469 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005687/0.5077, allocations: 5.18 MB / 0.6165 GB, free: 0.9805 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.509, allocations: 91.69 kB / 0.6166 GB, free: 0.8906 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/0.5092, allocations: 99.88 kB / 0.6167 GB, free: 0.793 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: liquidWater.z:DUMMY_STATE(unit = "1" protected = true ) "Charge number of ion" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: H2_gas.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: voltageSensor.v:VARIABLE(unit = "V" ) "Voltage between pin p and n (= p.v - n.v) as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (236): * Single equations (assignments): 229 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 4 {1 9,1 4,1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002745/0.5095, allocations: 174.1 kB / 0.6169 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002473/0.5097, allocations: 158 kB / 0.617 GB, free: 472 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009468/0.5192, allocations: 3.537 MB / 0.6205 GB, free: 12.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008472/0.5277, allocations: 3.089 MB / 0.6235 GB, free: 9.789 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.5277, allocations: 8 kB / 0.6235 GB, free: 9.781 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/0.5278, allocations: 7.969 kB / 0.6235 GB, free: 9.773 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01319/0.5409, allocations: 6.544 MB / 0.6299 GB, free: 3.129 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/0.541, allocations: 7.984 kB / 0.6299 GB, free: 3.121 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001549/0.5425, allocations: 308.1 kB / 0.6302 GB, free: 2.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004922/0.5475, allocations: 0.7327 MB / 0.6309 GB, free: 2.074 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.557e-05/0.5476, allocations: 32.03 kB / 0.6309 GB, free: 2.043 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007363/0.5549, allocations: 5.856 MB / 0.6367 GB, free: 11.88 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00465/0.5596, allocations: 1.979 MB / 0.6386 GB, free: 9.781 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01021/0.5698, allocations: 5.322 MB / 0.6438 GB, free: 4.207 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003558/0.5702, allocations: 227 kB / 0.644 GB, free: 3.965 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002216/0.5704, allocations: 11.98 kB / 0.644 GB, free: 3.953 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.5715, allocations: 39.97 kB / 0.6441 GB, free: 3.914 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.5716, allocations: 109.1 kB / 0.6442 GB, free: 3.809 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.5718, allocations: 63.97 kB / 0.6442 GB, free: 3.746 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0007694/0.5725, allocations: 0.6659 MB / 0.6449 GB, free: 3.078 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001941/0.5745, allocations: 0.7884 MB / 0.6456 GB, free: 2.289 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 7 ($STATESET140327376357783.x[2],$STATESET140327376357783.x[1],O2_gas.logn,H2_gas.logn,anode.temperature,cathode.temperature,air.temperature) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 4 {1 11,1 4,1 1,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001075/0.5756, allocations: 0.7338 MB / 0.6464 GB, free: 1.586 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003414/0.579, allocations: 2.724 MB / 0.649 GB, free: 14.84 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.579, allocations: 2.562 kB / 0.649 GB, free: 14.84 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001745/0.5808, allocations: 1.473 MB / 0.6505 GB, free: 13.35 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.5827, allocations: 479.6 kB / 0.6509 GB, free: 12.89 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005174/0.5879, allocations: 3.331 MB / 0.6542 GB, free: 9.453 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001287/0.5892, allocations: 1.62 MB / 0.6558 GB, free: 7.797 MB / 474.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5892, allocations: 0 / 0.6558 GB, free: 7.797 MB / 474.7 MB Notification: Performance of Templates: time 0.1487/0.7379, allocations: 35.69 MB / 0.6906 GB, free: 152.7 MB / 474.7 MB make -j1 -f Chemical_Chemical.Examples.WaterElectrolysis.makefile (rm -f Chemical_Chemical.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_Chemical.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.WaterElectrolysis.pipe >> ../files/Chemical_Chemical.Examples.WaterElectrolysis.sim & ./Chemical_Chemical.Examples.WaterElectrolysis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.WaterElectrolysis.pipe 2>&1)