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: "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",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.136/0.136, allocations: 15.26 MB / 22.55 MB, free: 1.105 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.001132/0.001132, allocations: 183.4 kB / 27.31 MB, free: 4 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.19/1.19, allocations: 221.4 MB / 253.3 MB, free: 10.34 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.0008484/0.0008486, allocations: 88.48 kB / 308.4 MB, free: 10.73 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2133/0.2142, allocations: 60.73 MB / 369.1 MB, free: 53.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09439/0.3086, allocations: 54.63 MB / 423.8 MB, free: 14.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2863/0.595, allocations: 104.3 MB / 0.5157 GB, free: 8.391 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001889/0.5952, allocations: 64.39 kB / 0.5158 GB, free: 8.391 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: 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.1375/0.7327, allocations: 58.79 MB / 0.5732 GB, free: 14.24 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.7327, allocations: 8 kB / 0.5732 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001969/0.7347, allocations: 0.512 MB / 0.5737 GB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002649/0.7374, allocations: 1.259 MB / 0.5749 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000152/0.7375, allocations: 113.6 kB / 0.575 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004151/0.738, allocations: 112 kB / 0.5751 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004852/0.7428, allocations: 3.307 MB / 0.5784 GB, free: 8.891 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003162/0.746, allocations: 2.112 MB / 0.5804 GB, free: 6.719 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.967e-05/0.7461, allocations: 7.938 kB / 0.5804 GB, free: 6.711 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/0.7462, allocations: 0 / 0.5804 GB, free: 6.711 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.03e-05/0.7462, allocations: 48 kB / 0.5805 GB, free: 6.664 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01096/0.7572, allocations: 8.803 MB / 0.5891 GB, free: 13.6 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.7587, allocations: 1.37 MB / 0.5904 GB, free: 12.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009939/0.7597, allocations: 0.9709 MB / 0.5914 GB, free: 11.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004833/0.7602, allocations: 394.5 kB / 0.5918 GB, free: 10.85 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.7602, allocations: 51.81 kB / 0.5918 GB, free: 10.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 3.517e-06/0.7603, allocations: 0 / 0.5918 GB, free: 10.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=166): time 0.03013/0.7904, allocations: 8.712 MB / 0.6003 GB, free: 2.035 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/0.7905, allocations: 124.1 kB / 0.6004 GB, free: 1.891 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.7919, allocations: 0.9213 MB / 0.6013 GB, free: 0.957 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001416/0.792, allocations: 25.7 kB / 0.6014 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000408/0.7924, allocations: 0.7633 MB / 0.6021 GB, free: 152 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005016/0.7929, allocations: 0.5468 MB / 0.6026 GB, free: 15.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.827e-05/0.7931, allocations: 0 / 0.6026 GB, free: 15.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.7932, allocations: 377.9 kB / 0.603 GB, free: 15.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00142/0.7946, allocations: 1.047 MB / 0.604 GB, free: 14.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001648/0.7963, allocations: 1.58 MB / 0.6056 GB, free: 12.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003483/0.7998, allocations: 1.542 MB / 0.6071 GB, free: 10.79 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.7998, allocations: 4 kB / 0.6071 GB, free: 10.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=256) (initialization): time 0.008787/0.8086, allocations: 3.571 MB / 0.6106 GB, free: 7.195 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.8087, allocations: 8 kB / 0.6106 GB, free: 7.188 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.96e-05/0.8087, allocations: 16 kB / 0.6106 GB, free: 7.172 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003316/0.812, allocations: 0.5505 MB / 0.6111 GB, free: 6.605 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00222/0.8142, allocations: 455.3 kB / 0.6115 GB, free: 6.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006484/0.8207, allocations: 5.183 MB / 0.6166 GB, free: 0.668 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/0.8227, allocations: 95.59 kB / 0.6167 GB, free: 0.5742 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003597/0.823, allocations: 99.97 kB / 0.6168 GB, free: 488 kB / 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.0005114/0.8236, allocations: 176 kB / 0.617 GB, free: 308 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004351/0.824, allocations: 154 kB / 0.6171 GB, free: 152 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0108/0.8348, allocations: 3.53 MB / 0.6206 GB, free: 12.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009524/0.8444, allocations: 3.104 MB / 0.6236 GB, free: 9.473 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.619e-05/0.8444, allocations: 4 kB / 0.6236 GB, free: 9.469 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.472e-05/0.8445, allocations: 7.969 kB / 0.6236 GB, free: 9.461 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01619/0.8607, allocations: 6.543 MB / 0.63 GB, free: 2.824 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.882e-05/0.8607, allocations: 11.98 kB / 0.63 GB, free: 2.812 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001728/0.8625, allocations: 308.1 kB / 0.6303 GB, free: 2.512 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005306/0.8678, allocations: 0.7222 MB / 0.631 GB, free: 1.773 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002447/0.8681, allocations: 39.94 kB / 0.631 GB, free: 1.734 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008228/0.8763, allocations: 5.845 MB / 0.6367 GB, free: 11.58 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004898/0.8812, allocations: 1.98 MB / 0.6387 GB, free: 9.48 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01224/0.8935, allocations: 5.323 MB / 0.6439 GB, free: 3.902 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01378/0.9073, allocations: 7.202 MB / 0.6509 GB, free: 12.46 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006861/0.9081, allocations: 231.1 kB / 0.6511 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004481/0.9085, allocations: 15.84 kB / 0.6511 GB, free: 12.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00139/0.9099, allocations: 39.95 kB / 0.6512 GB, free: 12.16 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.9102, allocations: 109.1 kB / 0.6513 GB, free: 12.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001401/0.9103, allocations: 63.97 kB / 0.6514 GB, free: 11.99 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001161/0.9115, allocations: 0.6659 MB / 0.652 GB, free: 11.32 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003599/0.9151, allocations: 0.8431 MB / 0.6528 GB, free: 10.48 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 7 ($STATESET0.x[2],$STATESET0.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.001734/0.9168, allocations: 0.7322 MB / 0.6535 GB, free: 9.773 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004093/0.921, allocations: 2.726 MB / 0.6562 GB, free: 7.031 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/0.921, allocations: 1.375 kB / 0.6562 GB, free: 7.031 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002104/0.9231, allocations: 1.48 MB / 0.6576 GB, free: 5.535 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/0.9255, allocations: 484 kB / 0.6581 GB, free: 5.066 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006632/0.9322, allocations: 3.336 MB / 0.6614 GB, free: 1.625 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.136/1.068, allocations: 1.64 MB / 0.663 GB, free: 154.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.262e-06/1.068, allocations: 0.6562 kB / 0.663 GB, free: 154.4 MB / 474.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_WaterElectrolysis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_WaterElectrolysis.fmu > Chemical_Chemical.Examples.WaterElectrolysis.pipe 2>&1)