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.09891/0.09891, allocations: 15.26 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.0009783/0.0009783, allocations: 181.2 kB / 35.3 MB, free: 2.379 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.436/1.436, allocations: 223.2 MB / 263.4 MB, free: 7.031 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.0008448/0.0008448, allocations: 96.27 kB / 318.8 MB, free: 3.879 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003232/0.0003231, allocations: 13.52 kB / 384 MB, free: 50.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1121, allocations: 54.64 MB / 438.6 MB, free: 420 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4241/0.5362, allocations: 105.1 MB / 0.531 GB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/0.5365, allocations: 70.91 kB / 0.5311 GB, free: 15.57 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.1296/0.6661, allocations: 57.39 MB / 0.5872 GB, free: 14.91 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.6662, allocations: 0 / 0.5872 GB, free: 14.91 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.835e-05/0.6663, allocations: 50.33 kB / 0.5872 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.00515/0.6714, allocations: 2.363 MB / 0.5895 GB, free: 13.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.403e-05/0.6715, allocations: 11.5 kB / 0.5895 GB, free: 13.39 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003659/0.6719, allocations: 275.1 kB / 0.5898 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0016/0.6735, allocations: 0.4904 MB / 0.5903 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00218/0.6757, allocations: 1.251 MB / 0.5915 GB, free: 12.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001537/0.6759, allocations: 178.8 kB / 0.5917 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002578/0.6761, allocations: 199.2 kB / 0.5918 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004378/0.6805, allocations: 2.818 MB / 0.5946 GB, free: 10.27 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.829e-05/0.6806, allocations: 7.938 kB / 0.5946 GB, free: 10.27 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001705/0.6807, allocations: 84 kB / 0.5947 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.758e-05/0.6808, allocations: 48 kB / 0.5947 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004893/0.6857, allocations: 3.459 MB / 0.5981 GB, free: 6.672 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.01421/0.6999, allocations: 9.106 MB / 0.607 GB, free: 13.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003531/0.7035, allocations: 2.623 MB / 0.6096 GB, free: 10.51 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005842/0.7041, allocations: 396.4 kB / 0.6099 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.638e-05/0.7041, allocations: 47.88 kB / 0.61 GB, free: 10.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 3.577e-06/0.7042, allocations: 4 kB / 0.61 GB, free: 10.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=166): time 0.02799/0.7322, allocations: 9.29 MB / 0.6191 GB, free: 0.6562 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.015e-05/0.7323, allocations: 124.1 kB / 0.6192 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001681/0.734, allocations: 1.07 MB / 0.6202 GB, free: 15.43 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00021/0.7342, allocations: 57.7 kB / 0.6203 GB, free: 15.37 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007392/0.7349, allocations: 0.9672 MB / 0.6212 GB, free: 14.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005364/0.7355, allocations: 0.5661 MB / 0.6218 GB, free: 13.82 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.7356, allocations: 40 kB / 0.6218 GB, free: 13.78 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.7358, allocations: 377.9 kB / 0.6222 GB, free: 13.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/0.7373, allocations: 1.07 MB / 0.6232 GB, free: 12.33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00184/0.7392, allocations: 1.608 MB / 0.6248 GB, free: 10.49 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001704/0.7409, allocations: 1.236 MB / 0.626 GB, free: 9.258 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.7409, allocations: 4 kB / 0.626 GB, free: 9.254 MB / 426.7 MB Notification: Performance of matching and sorting (n=254) (initialization): time 0.007838/0.7488, allocations: 3.424 MB / 0.6294 GB, free: 5.805 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.914e-05/0.7488, allocations: 12 kB / 0.6294 GB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.281e-05/0.7489, allocations: 20 kB / 0.6294 GB, free: 5.773 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004103/0.753, allocations: 0.6601 MB / 0.63 GB, free: 5.098 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002311/0.7553, allocations: 463.3 kB / 0.6305 GB, free: 4.645 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006964/0.7623, allocations: 5.36 MB / 0.6357 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001988/0.7643, allocations: 119.6 kB / 0.6358 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/0.7645, allocations: 91.97 kB / 0.6359 GB, free: 14.73 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.0009473/0.7655, allocations: 417.1 kB / 0.6363 GB, free: 14.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003177/0.7658, allocations: 169.8 kB / 0.6365 GB, free: 14.14 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007337/0.7731, allocations: 3.136 MB / 0.6395 GB, free: 10.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.202e-05/0.7732, allocations: 16 kB / 0.6395 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.679e-06/0.7732, allocations: 4 kB / 0.6395 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.237e-05/0.7732, allocations: 7.969 kB / 0.6396 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01168/0.7849, allocations: 5.915 MB / 0.6453 GB, free: 4.914 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.589e-05/0.785, allocations: 7.984 kB / 0.6453 GB, free: 4.906 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/0.7866, allocations: 312 kB / 0.6456 GB, free: 4.602 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003888/0.7905, allocations: 0.6478 MB / 0.6463 GB, free: 3.938 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001992/0.7907, allocations: 47.97 kB / 0.6463 GB, free: 3.891 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006699/0.7974, allocations: 5.319 MB / 0.6515 GB, free: 14.23 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/0.7975, allocations: 11.89 kB / 0.6515 GB, free: 14.21 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009016/0.8065, allocations: 4.937 MB / 0.6563 GB, free: 9.082 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006968/0.8072, allocations: 230.9 kB / 0.6566 GB, free: 8.836 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002185/0.8075, allocations: 39.98 kB / 0.6566 GB, free: 8.797 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.8085, allocations: 75.77 kB / 0.6567 GB, free: 8.723 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002386/0.8088, allocations: 121.1 kB / 0.6568 GB, free: 8.602 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/0.8089, allocations: 63.98 kB / 0.6568 GB, free: 8.539 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001138/0.81, allocations: 0.8052 MB / 0.6576 GB, free: 7.734 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.81, allocations: 0 / 0.6576 GB, free: 7.734 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002488/0.8125, allocations: 0.8042 MB / 0.6584 GB, free: 6.93 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.0108/0.8234, allocations: 7.178 MB / 0.6654 GB, free: 15.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004058/0.8275, allocations: 2.816 MB / 0.6682 GB, free: 12.77 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.8275, allocations: 0 / 0.6682 GB, free: 12.77 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001904/0.8294, allocations: 1.502 MB / 0.6696 GB, free: 11.24 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002454/0.8319, allocations: 0.5027 MB / 0.6701 GB, free: 10.74 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.215/1.047, allocations: 17.82 MB / 0.6875 GB, free: 102.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009079/1.048, allocations: 1.445 MB / 0.6889 GB, free: 101.5 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001417/1.049, allocations: 311.4 kB / 0.6892 GB, free: 101.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000872/1.05, allocations: 0.8397 MB / 0.6901 GB, free: 101.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.272e-06/1.05, allocations: 0 / 0.6901 GB, free: 101.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08503/1.135, allocations: 50.74 MB / 0.7396 GB, free: 96.77 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002034/1.135, allocations: 187.8 kB / 0.7398 GB, free: 96.52 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.885/5.021, allocations: 3.938 kB / 0.7398 GB, free: 96.52 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)