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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1015/0.1015, allocations: 15.27 MB / 30.21 MB, free: 3.297 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.001058/0.001058, allocations: 181.1 kB / 35.29 MB, free: 2.383 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.355/1.355, allocations: 223.2 MB / 263.4 MB, free: 6.875 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.001051/0.001051, allocations: 99.77 kB / 318.8 MB, free: 3.84 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003307, allocations: 12 kB / 383.9 MB, free: 50.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.103, allocations: 54.63 MB / 438.6 MB, free: 496 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3903/0.4934, allocations: 105.1 MB / 0.531 GB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.4936, allocations: 73.19 kB / 0.531 GB, free: 15.59 MB / 378.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 - DAE generated: time 0.1241/0.6177, allocations: 57.39 MB / 0.5871 GB, free: 14.9 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6177, allocations: 0 / 0.5871 GB, free: 14.9 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.092e-05/0.6178, allocations: 46.47 kB / 0.5871 GB, free: 14.9 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: 501 * Number of variables: 501 Notification: Performance of Generate backend data structure: time 0.004522/0.6224, allocations: 2.366 MB / 0.5894 GB, free: 13.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.6224, allocations: 7.75 kB / 0.5894 GB, free: 13.39 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00164/0.6241, allocations: 0.4955 MB / 0.5899 GB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00223/0.6263, allocations: 1.252 MB / 0.5911 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.6264, allocations: 181 kB / 0.5913 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000224/0.6267, allocations: 197.1 kB / 0.5915 GB, free: 12.44 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003917/0.6306, allocations: 2.818 MB / 0.5943 GB, free: 10.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.927e-05/0.6306, allocations: 3.938 kB / 0.5943 GB, free: 10.55 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001561/0.6308, allocations: 80 kB / 0.5943 GB, free: 10.47 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.485e-05/0.6309, allocations: 48 kB / 0.5944 GB, free: 10.42 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004321/0.6352, allocations: 3.459 MB / 0.5978 GB, free: 6.957 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.01328/0.6485, allocations: 9.106 MB / 0.6067 GB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003291/0.6518, allocations: 2.618 MB / 0.6092 GB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005316/0.6524, allocations: 396.6 kB / 0.6096 GB, free: 10.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.6524, allocations: 47.81 kB / 0.6096 GB, free: 10.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 3.597e-06/0.6524, allocations: 0 / 0.6096 GB, free: 10.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=166): time 0.02813/0.6805, allocations: 9.287 MB / 0.6187 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.902e-05/0.6807, allocations: 120.1 kB / 0.6188 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001545/0.6822, allocations: 1.086 MB / 0.6199 GB, free: 15.72 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002035/0.6824, allocations: 53.7 kB / 0.6199 GB, free: 15.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006628/0.6831, allocations: 0.9595 MB / 0.6209 GB, free: 14.69 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005253/0.6836, allocations: 0.5583 MB / 0.6214 GB, free: 14.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.6837, allocations: 43.94 kB / 0.6214 GB, free: 14.08 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.6839, allocations: 389.8 kB / 0.6218 GB, free: 13.69 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.6854, allocations: 1.07 MB / 0.6229 GB, free: 12.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001795/0.6872, allocations: 1.607 MB / 0.6244 GB, free: 10.78 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.6889, allocations: 1.244 MB / 0.6257 GB, free: 9.539 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.998e-06/0.689, allocations: 4 kB / 0.6257 GB, free: 9.535 MB / 426.7 MB Notification: Performance of matching and sorting (n=254) (initialization): time 0.007783/0.6968, allocations: 3.42 MB / 0.629 GB, free: 6.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.323e-05/0.6968, allocations: 12 kB / 0.629 GB, free: 6.078 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.551e-05/0.6969, allocations: 16 kB / 0.629 GB, free: 6.062 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004202/0.7011, allocations: 0.6716 MB / 0.6297 GB, free: 5.375 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002237/0.7033, allocations: 459.3 kB / 0.6301 GB, free: 4.926 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007463/0.7108, allocations: 5.345 MB / 0.6353 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002718/0.7136, allocations: 119.6 kB / 0.6354 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005861/0.7142, allocations: 95.97 kB / 0.6355 GB, free: 15.02 MB / 442.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (236): * Single equations (assignments): 231 * 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 9,1 4,1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001689/0.7159, allocations: 424.4 kB / 0.6359 GB, free: 14.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000575/0.7165, allocations: 165.8 kB / 0.6361 GB, free: 14.44 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008309/0.7248, allocations: 3.136 MB / 0.6392 GB, free: 11.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.7249, allocations: 24 kB / 0.6392 GB, free: 11.25 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.7249, allocations: 0 / 0.6392 GB, free: 11.25 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.897e-05/0.7249, allocations: 7.969 kB / 0.6392 GB, free: 11.24 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01169/0.7366, allocations: 5.919 MB / 0.645 GB, free: 5.199 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.7367, allocations: 4 kB / 0.645 GB, free: 5.195 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/0.7382, allocations: 311.5 kB / 0.6453 GB, free: 4.891 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003862/0.7421, allocations: 0.6561 MB / 0.6459 GB, free: 4.219 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.7422, allocations: 51.97 kB / 0.646 GB, free: 4.168 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006671/0.7489, allocations: 5.311 MB / 0.6512 GB, free: 14.51 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.7489, allocations: 15.89 kB / 0.6512 GB, free: 14.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009074/0.758, allocations: 4.93 MB / 0.656 GB, free: 9.371 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006457/0.7587, allocations: 234.9 kB / 0.6562 GB, free: 9.121 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000195/0.7589, allocations: 36 kB / 0.6562 GB, free: 9.086 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.7599, allocations: 71.81 kB / 0.6563 GB, free: 9.016 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002462/0.7602, allocations: 133 kB / 0.6564 GB, free: 8.883 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.7603, allocations: 55.92 kB / 0.6565 GB, free: 8.828 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001182/0.7615, allocations: 0.8091 MB / 0.6573 GB, free: 8.02 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7615, allocations: 4 kB / 0.6573 GB, free: 8.016 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002571/0.7641, allocations: 0.8081 MB / 0.6581 GB, free: 7.207 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (O2_gas.logn,H2_gas.logn,anode.temperature,cathode.temperature,water.temperature,air.temperature,liquidWater.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 (162): * Single equations (assignments): 157 * 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,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.00151/0.7656, allocations: 0.7339 MB / 0.6588 GB, free: 6.465 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004209/0.7698, allocations: 2.817 MB / 0.6615 GB, free: 3.621 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.7698, allocations: 0 / 0.6615 GB, free: 3.621 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001931/0.7718, allocations: 1.501 MB / 0.663 GB, free: 2.094 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002285/0.7741, allocations: 0.5113 MB / 0.6635 GB, free: 1.59 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006692/0.7808, allocations: 4.912 MB / 0.6683 GB, free: 12.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/0.7819, allocations: 1.446 MB / 0.6697 GB, free: 11.12 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001336/0.7832, allocations: 306 kB / 0.67 GB, free: 10.81 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003678/0.7836, allocations: 147.4 kB / 0.6701 GB, free: 10.67 MB / 474.7 MB Notification: Performance of SimCode: time 1.643e-06/0.7836, allocations: 0 / 0.6701 GB, free: 10.67 MB / 474.7 MB Notification: Performance of Templates: time 0.2831/1.067, allocations: 35.25 MB / 0.7046 GB, free: 106.8 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)