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.1056/0.1056, allocations: 15.26 MB / 31.21 MB, free: 3.09 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.00104/0.00104, allocations: 181.5 kB / 36.3 MB, free: 2.246 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.448/1.448, allocations: 223.2 MB / 264.5 MB, free: 6.25 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.0007768/0.0007767, allocations: 99.67 kB / 319.9 MB, free: 3.176 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003699/0.00037, allocations: 14 kB / 385.2 MB, free: 50.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09759/0.09797, allocations: 54.63 MB / 439.8 MB, free: 116 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3855/0.4835, allocations: 105.2 MB / 0.5322 GB, free: 15.49 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.4837, allocations: 75.7 kB / 0.5323 GB, free: 15.49 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.1283/0.612, allocations: 57.2 MB / 0.5882 GB, free: 14.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.6121, allocations: 0 / 0.5882 GB, free: 14.7 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001415/0.6122, allocations: 46.62 kB / 0.5882 GB, free: 14.69 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.005559/0.6178, allocations: 2.336 MB / 0.5905 GB, free: 13.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.6178, allocations: 16.47 kB / 0.5905 GB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001901/0.6197, allocations: 0.4936 MB / 0.591 GB, free: 12.97 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002743/0.6225, allocations: 1.29 MB / 0.5922 GB, free: 12.24 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.6227, allocations: 182.4 kB / 0.5924 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000483/0.6232, allocations: 197.6 kB / 0.5926 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004992/0.6282, allocations: 2.84 MB / 0.5954 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.78e-05/0.6283, allocations: 4 kB / 0.5954 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002459/0.6285, allocations: 79.94 kB / 0.5955 GB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.442e-05/0.6286, allocations: 48 kB / 0.5955 GB, free: 10.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005216/0.6338, allocations: 3.459 MB / 0.5989 GB, free: 6.695 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.01427/0.6481, allocations: 9.11 MB / 0.6078 GB, free: 13.22 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003331/0.6515, allocations: 2.627 MB / 0.6103 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001405/0.6529, allocations: 1.014 MB / 0.6113 GB, free: 9.516 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006291/0.6536, allocations: 392.5 kB / 0.6117 GB, free: 9.133 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.256e-05/0.6536, allocations: 47.88 kB / 0.6118 GB, free: 9.074 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 5.881e-06/0.6536, allocations: 0 / 0.6118 GB, free: 9.074 MB / 410.7 MB Notification: Performance of matching and sorting (n=166): time 0.02688/0.6805, allocations: 9.307 MB / 0.6208 GB, free: 15.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.727e-05/0.6806, allocations: 120.1 kB / 0.621 GB, free: 15.51 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00185/0.6825, allocations: 1.238 MB / 0.6222 GB, free: 14.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001173/0.6826, allocations: 57.7 kB / 0.6222 GB, free: 14.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006658/0.6833, allocations: 0.9596 MB / 0.6232 GB, free: 13.23 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000485/0.6838, allocations: 0.5583 MB / 0.6237 GB, free: 12.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.6839, allocations: 40 kB / 0.6237 GB, free: 12.62 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.6841, allocations: 377.9 kB / 0.6241 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001504/0.6856, allocations: 1.07 MB / 0.6252 GB, free: 11.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001852/0.6875, allocations: 1.619 MB / 0.6267 GB, free: 9.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00358/0.6911, allocations: 2.826 MB / 0.6295 GB, free: 6.258 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.378e-05/0.6911, allocations: 8 kB / 0.6295 GB, free: 6.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=254) (initialization): time 0.007362/0.6985, allocations: 3.42 MB / 0.6328 GB, free: 2.805 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.6985, allocations: 12.53 kB / 0.6329 GB, free: 2.793 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.733e-05/0.6985, allocations: 20 kB / 0.6329 GB, free: 2.773 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003635/0.7022, allocations: 0.6634 MB / 0.6335 GB, free: 2.094 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001982/0.7042, allocations: 455.3 kB / 0.634 GB, free: 1.648 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006614/0.7108, allocations: 5.326 MB / 0.6392 GB, free: 11.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001684/0.7125, allocations: 115.7 kB / 0.6393 GB, free: 11.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002271/0.7128, allocations: 99.97 kB / 0.6394 GB, free: 11.77 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.0009979/0.7138, allocations: 413.1 kB / 0.6398 GB, free: 11.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004033/0.7142, allocations: 169.8 kB / 0.6399 GB, free: 11.18 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007464/0.7216, allocations: 3.124 MB / 0.643 GB, free: 8.027 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.887e-05/0.7217, allocations: 23.94 kB / 0.643 GB, free: 8.004 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.7217, allocations: 3.984 kB / 0.643 GB, free: 8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.107e-05/0.7217, allocations: 7.969 kB / 0.643 GB, free: 7.992 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01169/0.7334, allocations: 5.919 MB / 0.6488 GB, free: 1.953 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.7335, allocations: 4 kB / 0.6488 GB, free: 1.949 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/0.735, allocations: 304.2 kB / 0.6491 GB, free: 1.652 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003528/0.7385, allocations: 0.6594 MB / 0.6497 GB, free: 0.9766 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002036/0.7387, allocations: 51.97 kB / 0.6498 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006819/0.7456, allocations: 5.276 MB / 0.6549 GB, free: 11.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/0.7456, allocations: 4 kB / 0.6549 GB, free: 11.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00903/0.7546, allocations: 4.714 MB / 0.6595 GB, free: 6.504 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005984/0.7553, allocations: 230.9 kB / 0.6597 GB, free: 6.258 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004081/0.7557, allocations: 36 kB / 0.6598 GB, free: 6.223 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/0.757, allocations: 79.75 kB / 0.6599 GB, free: 6.145 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002653/0.7573, allocations: 125 kB / 0.66 GB, free: 6.023 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/0.7574, allocations: 51.98 kB / 0.66 GB, free: 5.973 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00138/0.7588, allocations: 0.8169 MB / 0.6608 GB, free: 5.156 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7588, allocations: 0 / 0.6608 GB, free: 5.156 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00289/0.7617, allocations: 0.8081 MB / 0.6616 GB, free: 4.348 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.001935/0.7637, allocations: 0.743 MB / 0.6623 GB, free: 3.594 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005187/0.7689, allocations: 2.809 MB / 0.6651 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.7689, allocations: 4 kB / 0.6651 GB, free: 0.7617 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002586/0.7715, allocations: 1.501 MB / 0.6666 GB, free: 15.23 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00392/0.7754, allocations: 0.5316 MB / 0.6671 GB, free: 14.71 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007838/0.7833, allocations: 4.922 MB / 0.6719 GB, free: 9.715 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/0.7849, allocations: 1.399 MB / 0.6732 GB, free: 8.281 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001578/0.7864, allocations: 310 kB / 0.6735 GB, free: 7.973 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005003/0.787, allocations: 147.4 kB / 0.6737 GB, free: 7.828 MB / 474.7 MB Notification: Performance of SimCode: time 1.342e-06/0.787, allocations: 0 / 0.6737 GB, free: 7.828 MB / 474.7 MB Notification: Performance of Templates: time 0.263/1.05, allocations: 35.89 MB / 0.7087 GB, free: 107.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)