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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1211/0.1211, allocations: 15.25 MB / 27.81 MB, free: 5.395 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.001376/0.001376, 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.399/1.399, allocations: 221.3 MB / 258.8 MB, free: 52 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008618/0.0008619, allocations: 96.98 kB / 314 MB, free: 15.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.35e-05/3.364e-05, allocations: 3.938 kB / 376.6 MB, free: 1.332 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.334, allocations: 54.6 MB / 431.2 MB, free: 50.08 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.135/0.469, allocations: 105.1 MB / 0.5237 GB, free: 10.15 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.4693, allocations: 70.12 kB / 0.5238 GB, free: 10.08 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.1535/0.6229, allocations: 57.25 MB / 0.5797 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6229, allocations: 0 / 0.5797 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001837/0.6231, allocations: 44 kB / 0.5797 GB, free: 0.8828 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.2884/0.9116, allocations: 2.154 MB / 0.5818 GB, free: 90.72 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.9117, allocations: 13.88 kB / 0.5818 GB, free: 90.72 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003475/0.912, allocations: 274.4 kB / 0.5821 GB, free: 90.67 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001746/0.9138, allocations: 0.5004 MB / 0.5826 GB, free: 90.55 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002187/0.916, allocations: 1.249 MB / 0.5838 GB, free: 90.25 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000152/0.9161, allocations: 185.2 kB / 0.584 GB, free: 90.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002593/0.9164, allocations: 203.7 kB / 0.5842 GB, free: 90.21 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004289/0.9207, allocations: 2.776 MB / 0.5869 GB, free: 89.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.783e-05/0.9208, allocations: 2.406 kB / 0.5869 GB, free: 89.98 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001565/0.9209, allocations: 81 kB / 0.587 GB, free: 89.98 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.356e-05/0.921, allocations: 49.45 kB / 0.587 GB, free: 89.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004874/0.9259, allocations: 3.411 MB / 0.5903 GB, free: 89.96 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.01327/0.9391, allocations: 9.084 MB / 0.5992 GB, free: 86.79 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00369/0.9428, allocations: 2.599 MB / 0.6017 GB, free: 86.52 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.9442, allocations: 1.003 MB / 0.6027 GB, free: 86.5 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006661/0.9448, allocations: 387.4 kB / 0.6031 GB, free: 86.48 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/0.9449, allocations: 53.47 kB / 0.6031 GB, free: 86.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=134): time 4.348e-06/0.9449, allocations: 0 / 0.6031 GB, free: 86.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=170): time 0.028/0.9729, allocations: 8.536 MB / 0.6115 GB, free: 84.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006722/0.9797, allocations: 4.051 MB / 0.6154 GB, free: 81.49 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001666/0.9814, allocations: 1.062 MB / 0.6165 GB, free: 81.04 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001462/0.9815, allocations: 56.33 kB / 0.6165 GB, free: 80.98 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006626/0.9822, allocations: 0.9539 MB / 0.6175 GB, free: 80.23 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004625/0.9827, allocations: 0.5849 MB / 0.618 GB, free: 79.78 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.204e-05/0.9828, allocations: 39.62 kB / 0.6181 GB, free: 79.75 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.9829, allocations: 381.6 kB / 0.6184 GB, free: 79.41 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001426/0.9844, allocations: 1.092 MB / 0.6195 GB, free: 78.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001886/0.9863, allocations: 1.639 MB / 0.6211 GB, free: 77.85 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001691/0.988, allocations: 1.276 MB / 0.6223 GB, free: 77.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/0.988, allocations: 7.438 kB / 0.6224 GB, free: 77.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007723/0.9957, allocations: 3.467 MB / 0.6257 GB, free: 76.08 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.796e-05/0.9958, allocations: 18.06 kB / 0.6258 GB, free: 76.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.904e-05/0.9958, allocations: 16.78 kB / 0.6258 GB, free: 76.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003338/0.9991, allocations: 0.6452 MB / 0.6264 GB, free: 75.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001879/1.001, allocations: 454.6 kB / 0.6268 GB, free: 75.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005156/1.006, allocations: 5.29 MB / 0.632 GB, free: 71.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00179/1.008, allocations: 138.8 kB / 0.6321 GB, free: 71.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001614/1.008, allocations: 96.72 kB / 0.6322 GB, free: 71.16 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.0002916/1.008, allocations: 233.8 kB / 0.6325 GB, free: 70.96 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003092/1.009, allocations: 169.3 kB / 0.6326 GB, free: 70.87 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007731/1.017, allocations: 3.321 MB / 0.6359 GB, free: 69.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006454/1.023, allocations: 2.885 MB / 0.6387 GB, free: 68.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/1.023, allocations: 0 / 0.6387 GB, free: 68.57 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.995e-05/1.023, allocations: 12.08 kB / 0.6387 GB, free: 68.57 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01222/1.035, allocations: 6.602 MB / 0.6451 GB, free: 65.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/1.035, allocations: 3.906 kB / 0.6451 GB, free: 65.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001581/1.037, allocations: 312.4 kB / 0.6454 GB, free: 65.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004994/1.042, allocations: 0.833 MB / 0.6462 GB, free: 65.58 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001521/1.042, allocations: 57.94 kB / 0.6463 GB, free: 65.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007492/1.05, allocations: 5.927 MB / 0.6521 GB, free: 60.67 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004249/1.054, allocations: 2.095 MB / 0.6541 GB, free: 58.99 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009447/1.063, allocations: 5.176 MB / 0.6592 GB, free: 56.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007943/1.064, allocations: 240.7 kB / 0.6594 GB, free: 56.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005301/1.065, allocations: 36.38 kB / 0.6595 GB, free: 56.08 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001509/1.066, allocations: 85.84 kB / 0.6595 GB, free: 56.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003086/1.067, allocations: 136.4 kB / 0.6597 GB, free: 56.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/1.067, allocations: 65.28 kB / 0.6597 GB, free: 56 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001434/1.068, allocations: 0.7863 MB / 0.6605 GB, free: 55.67 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.068, allocations: 0 / 0.6605 GB, free: 55.67 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003416/1.072, allocations: 0.8615 MB / 0.6613 GB, free: 55.55 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.01125/1.083, allocations: 7.673 MB / 0.6688 GB, free: 48.68 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004276/1.087, allocations: 2.849 MB / 0.6716 GB, free: 45.99 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/1.087, allocations: 4 kB / 0.6716 GB, free: 45.99 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0021/1.089, allocations: 1.564 MB / 0.6731 GB, free: 44.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003178/1.093, allocations: 0.5252 MB / 0.6737 GB, free: 44.14 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008921/1.101, allocations: 3.891 MB / 0.6775 GB, free: 40.58 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001252/1.103, allocations: 1.469 MB / 0.6789 GB, free: 39.37 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001678/1.104, allocations: 312.8 kB / 0.6792 GB, free: 39.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001194/1.106, allocations: 0.8525 MB / 0.68 GB, free: 38.37 MB / 442.7 MB Notification: Performance of SimCode: time 1.022e-06/1.106, allocations: 0 / 0.68 GB, free: 38.37 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0939/1.2, allocations: 53.43 MB / 0.7322 GB, free: 7.367 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000235/1.2, allocations: 163.3 kB / 0.7324 GB, free: 7.141 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.045/5.245, allocations: 3.938 kB / 0.7324 GB, free: 7.137 MB / 458.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)