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.124/0.124, allocations: 15.26 MB / 27.81 MB, free: 5.391 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.001103/0.001103, allocations: 192.4 kB / 32.7 MB, free: 0.5078 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.453/1.453, allocations: 221.3 MB / 258.8 MB, free: 15.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000964/0.0009641, allocations: 106.5 kB / 314 MB, free: 15.76 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.854e-05/4.857e-05, allocations: 11.94 kB / 376.5 MB, free: 1.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3505, allocations: 54.61 MB / 431.1 MB, free: 50.09 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1427/0.4933, allocations: 105.1 MB / 0.5236 GB, free: 10.19 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.4936, allocations: 68.75 kB / 0.5237 GB, free: 10.12 MB / 394.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.1472/0.6408, allocations: 57.25 MB / 0.5796 GB, free: 0.957 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.6408, allocations: 0 / 0.5796 GB, free: 0.957 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001003/0.6409, allocations: 47.98 kB / 0.5796 GB, free: 0.9102 MB / 442.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.2735/0.9144, allocations: 2.151 MB / 0.5817 GB, free: 90.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.832e-05/0.9145, allocations: 10 kB / 0.5817 GB, free: 90.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00229/0.9168, allocations: 0.4989 MB / 0.5822 GB, free: 90.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003017/0.9198, allocations: 1.246 MB / 0.5834 GB, free: 90.2 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001542/0.92, allocations: 184.3 kB / 0.5836 GB, free: 90.16 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000301/0.9203, allocations: 197.1 kB / 0.5838 GB, free: 90.16 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004723/0.9251, allocations: 2.785 MB / 0.5865 GB, free: 89.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.033e-05/0.9251, allocations: 1.375 kB / 0.5865 GB, free: 89.93 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00016/0.9253, allocations: 81.09 kB / 0.5866 GB, free: 89.93 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.601e-05/0.9254, allocations: 48.84 kB / 0.5866 GB, free: 89.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005258/0.9306, allocations: 3.41 MB / 0.59 GB, free: 89.92 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01408/0.9447, allocations: 9.088 MB / 0.5988 GB, free: 86.74 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003482/0.9482, allocations: 2.595 MB / 0.6014 GB, free: 86.47 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001232/0.9495, allocations: 1.004 MB / 0.6024 GB, free: 86.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006119/0.9501, allocations: 388.8 kB / 0.6027 GB, free: 86.44 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.9502, allocations: 50.81 kB / 0.6028 GB, free: 86.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=134): time 3.968e-06/0.9502, allocations: 3.938 kB / 0.6028 GB, free: 86.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=170): time 0.02795/0.9781, allocations: 8.538 MB / 0.6111 GB, free: 84.99 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006111/0.9843, allocations: 4.043 MB / 0.6151 GB, free: 81.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/0.9859, allocations: 1.069 MB / 0.6161 GB, free: 81.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003719/0.9863, allocations: 55.33 kB / 0.6162 GB, free: 81.15 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004766/0.9867, allocations: 0.9587 MB / 0.6171 GB, free: 80.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004249/0.9872, allocations: 0.5762 MB / 0.6177 GB, free: 79.95 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.9873, allocations: 45.02 kB / 0.6177 GB, free: 79.92 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.269e-05/0.9874, allocations: 379.9 kB / 0.6181 GB, free: 79.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.9887, allocations: 1.094 MB / 0.6191 GB, free: 79.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.9901, allocations: 1.639 MB / 0.6207 GB, free: 78.02 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001528/0.9916, allocations: 1.276 MB / 0.622 GB, free: 77.54 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.9917, allocations: 5.656 kB / 0.622 GB, free: 77.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.006372/0.998, allocations: 3.471 MB / 0.6254 GB, free: 76.24 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.361e-05/0.9981, allocations: 15.06 kB / 0.6254 GB, free: 76.24 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.738e-05/0.9981, allocations: 21.92 kB / 0.6254 GB, free: 76.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00323/1.001, allocations: 0.6364 MB / 0.626 GB, free: 76.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002097/1.003, allocations: 463.7 kB / 0.6265 GB, free: 76.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005075/1.009, allocations: 5.28 MB / 0.6316 GB, free: 71.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002114/1.011, allocations: 136.6 kB / 0.6318 GB, free: 71.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002133/1.011, allocations: 98.42 kB / 0.6319 GB, free: 71.33 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (240): * Single equations (assignments): 233 * 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.0003435/1.011, allocations: 234.1 kB / 0.6321 GB, free: 71.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003075/1.012, allocations: 173.7 kB / 0.6322 GB, free: 71.03 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007415/1.019, allocations: 3.323 MB / 0.6355 GB, free: 69.77 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006449/1.026, allocations: 2.885 MB / 0.6383 GB, free: 68.73 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/1.026, allocations: 0 / 0.6383 GB, free: 68.73 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.271e-05/1.026, allocations: 7.219 kB / 0.6383 GB, free: 68.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01251/1.038, allocations: 6.608 MB / 0.6448 GB, free: 65.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/1.038, allocations: 7.031 kB / 0.6448 GB, free: 65.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001539/1.04, allocations: 307.9 kB / 0.6451 GB, free: 65.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005118/1.045, allocations: 0.8304 MB / 0.6459 GB, free: 65.74 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002513/1.045, allocations: 49.69 kB / 0.6459 GB, free: 65.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00662/1.052, allocations: 5.937 MB / 0.6517 GB, free: 60.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004333/1.056, allocations: 2.1 MB / 0.6538 GB, free: 59.14 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009354/1.066, allocations: 5.162 MB / 0.6588 GB, free: 56.46 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007998/1.066, allocations: 241.2 kB / 0.659 GB, free: 56.26 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004435/1.067, allocations: 41.86 kB / 0.6591 GB, free: 56.24 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/1.068, allocations: 82.83 kB / 0.6592 GB, free: 56.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002799/1.068, allocations: 138.2 kB / 0.6593 GB, free: 56.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/1.068, allocations: 62.3 kB / 0.6594 GB, free: 56.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009901/1.069, allocations: 0.7922 MB / 0.6601 GB, free: 55.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.41e-07/1.069, allocations: 0 / 0.6601 GB, free: 55.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002598/1.072, allocations: 0.8596 MB / 0.661 GB, free: 55.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 7 ($STATESET1.x[2],$STATESET1.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 (161): * Single equations (assignments): 156 * 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.001291/1.073, allocations: 0.7475 MB / 0.6617 GB, free: 55.48 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003433/1.077, allocations: 2.846 MB / 0.6645 GB, free: 52.81 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/1.077, allocations: 0 / 0.6645 GB, free: 52.81 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001697/1.078, allocations: 1.564 MB / 0.666 GB, free: 51.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002418/1.081, allocations: 0.5219 MB / 0.6665 GB, free: 50.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00476/1.086, allocations: 3.394 MB / 0.6698 GB, free: 47.76 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007079/1.086, allocations: 1.465 MB / 0.6713 GB, free: 46.55 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001344/1.088, allocations: 310.9 kB / 0.6716 GB, free: 46.33 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003725/1.088, allocations: 160.8 kB / 0.6717 GB, free: 46.2 MB / 442.7 MB Notification: Performance of SimCode: time 7.62e-07/1.088, allocations: 4 kB / 0.6717 GB, free: 46.19 MB / 442.7 MB Notification: Performance of Templates: time 0.04854/1.137, allocations: 37.04 MB / 0.7079 GB, free: 16.21 MB / 442.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)