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/ModelicaServices 4.0.0+maint.om/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/Chemical 1.4.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 97.91 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2369/0.2369, allocations: 15.25 MB / 306.2 MB, free: 15.74 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004821/0.0004822, allocations: 8 kB / 371.4 MB, free: 3.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3172, allocations: 54.61 MB / 426 MB, free: 40.18 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.WaterElectrolysis): time 0.007809/0.325, allocations: 8.189 MB / 434.2 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01549/0.3405, allocations: 15.3 MB / 449.5 MB, free: 26.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00209/0.3427, allocations: 37.19 kB / 449.5 MB, free: 26.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001311/0.344, allocations: 444.1 kB / 449.9 MB, free: 26.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003964/0.348, allocations: 1.477 MB / 451.4 MB, free: 25.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006859/0.3548, allocations: 2.233 MB / 453.6 MB, free: 23.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002858/0.3577, allocations: 1.534 MB / 455.2 MB, free: 23.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001207/0.3589, allocations: 1.158 MB / 456.3 MB, free: 22.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009985/0.3599, allocations: 0.7844 MB / 457.1 MB, free: 22.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009562/0.3609, allocations: 0.9799 MB / 458.1 MB, free: 21.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001605/0.3611, allocations: 116.7 kB / 458.2 MB, free: 21.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006359/0.3674, allocations: 1.989 MB / 460.2 MB, free: 21.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004249/0.3679, allocations: 386 kB / 460.6 MB, free: 21.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007298/0.3686, allocations: 385.2 kB / 461 MB, free: 21.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005817/0.3745, allocations: 2.618 MB / 463.6 MB, free: 20.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3745, allocations: 3.938 kB / 463.6 MB, free: 20.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3745, allocations: 1.031 kB / 463.6 MB, free: 20.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.811e-05/0.3745, allocations: 0 / 463.6 MB, free: 20.28 MB / 350.1 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.004723/0.3793, allocations: 2.108 MB / 465.7 MB, free: 19.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.3793, allocations: 12.44 kB / 465.7 MB, free: 19.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001843/0.3812, allocations: 434.8 kB / 466.1 MB, free: 18.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002158/0.3834, allocations: 1.033 MB / 467.2 MB, free: 18.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.3836, allocations: 176.7 kB / 467.3 MB, free: 18.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003186/0.3839, allocations: 203 kB / 467.5 MB, free: 18.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003619/0.3875, allocations: 2.113 MB / 469.6 MB, free: 17.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.673e-05/0.3876, allocations: 5.312 kB / 469.6 MB, free: 17.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001714/0.3878, allocations: 81.88 kB / 469.7 MB, free: 17.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.632e-05/0.3878, allocations: 48.12 kB / 469.8 MB, free: 17.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004028/0.3918, allocations: 2.224 MB / 472 MB, free: 16.46 MB / 350.1 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.0128/0.4047, allocations: 7.336 MB / 479.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002877/0.4076, allocations: 1.738 MB / 481.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009426/0.417, allocations: 6.24 MB / 487.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.4171, allocations: 48.94 kB / 487.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=88): time 3.556e-06/0.4171, allocations: 0 / 487.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.01863/0.4357, allocations: 4.902 MB / 492.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.4358, allocations: 115.8 kB / 492.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009338/0.4368, allocations: 0.9 MB / 493.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.038e-05/0.4368, allocations: 45.7 kB / 493.3 MB, free: 1.289 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000384/0.4372, allocations: 0.9286 MB / 494.2 MB, free: 352 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002452/0.4375, allocations: 386.7 kB / 494.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.624e-05/0.4376, allocations: 36 kB / 494.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.4377, allocations: 377.8 kB / 495 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007437/0.4385, allocations: 447.8 kB / 495.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001222/0.4397, allocations: 1.183 MB / 496.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.4407, allocations: 0.6275 MB / 497.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.248e-05/0.4408, allocations: 8 kB / 497.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.00491/0.4457, allocations: 2.049 MB / 499.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.887e-05/0.4457, allocations: 12 kB / 499.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.019e-05/0.4458, allocations: 28 kB / 499.4 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002526/0.4483, allocations: 394.2 kB / 499.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/0.45, allocations: 447.3 kB / 0.4885 GB, free: 10 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005278/0.4553, allocations: 3.906 MB / 0.4923 GB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/0.4569, allocations: 123.7 kB / 0.4924 GB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001658/0.4571, allocations: 104 kB / 0.4925 GB, free: 5.594 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 115 * 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 (219): * Single equations (assignments): 216 * 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: 3 * 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: 2 {1 7,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0007233/0.4578, allocations: 383.3 kB / 0.4929 GB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002205/0.4581, allocations: 122.4 kB / 0.493 GB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004868/0.4629, allocations: 1.632 MB / 0.4946 GB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.463, allocations: 12 kB / 0.4946 GB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.463, allocations: 8 kB / 0.4946 GB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.463, allocations: 3.984 kB / 0.4946 GB, free: 3.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002412/0.4654, allocations: 1.481 MB / 0.496 GB, free: 1.852 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.4654, allocations: 4 kB / 0.496 GB, free: 1.848 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/0.4666, allocations: 243.7 kB / 0.4963 GB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002485/0.4691, allocations: 362.3 kB / 0.4966 GB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.4693, allocations: 47.97 kB / 0.4967 GB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004887/0.4742, allocations: 3.816 MB / 0.5004 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.4742, allocations: 8.062 kB / 0.5004 GB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005067/0.4793, allocations: 2.358 MB / 0.5027 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005008/0.4798, allocations: 191.5 kB / 0.5029 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001622/0.4799, allocations: 24 kB / 0.5029 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007262/0.4807, allocations: 59.75 kB / 0.503 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.4809, allocations: 100.8 kB / 0.5031 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.709e-05/0.481, allocations: 59.97 kB / 0.5031 GB, free: 10.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007462/0.4817, allocations: 0.562 MB / 0.5037 GB, free: 9.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4817, allocations: 0 / 0.5037 GB, free: 9.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002938/0.4847, allocations: 0.7105 MB / 0.5044 GB, free: 8.879 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (109): * Single equations (assignments): 106 * 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: 3 * 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: 2 {1 8,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001554/0.4863, allocations: 0.6974 MB / 0.505 GB, free: 8.172 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002865/0.4891, allocations: 1.522 MB / 0.5065 GB, free: 6.625 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.4892, allocations: 0 / 0.5065 GB, free: 6.625 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.4905, allocations: 0.8282 MB / 0.5073 GB, free: 5.773 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.4917, allocations: 200.8 kB / 0.5075 GB, free: 5.574 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005462/0.4971, allocations: 3.766 MB / 0.5112 GB, free: 1.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00082/0.498, allocations: 1.294 MB / 0.5125 GB, free: 436 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001345/0.4993, allocations: 342.9 kB / 0.5128 GB, free: 88 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004216/0.4998, allocations: 215.5 kB / 0.513 GB, free: 15.88 MB / 398.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4998, allocations: 0 / 0.513 GB, free: 15.88 MB / 398.1 MB Notification: Performance of Templates: time 0.03589/0.5357, allocations: 23.17 MB / 0.5356 GB, free: 8.781 MB / 414.1 MB make -j1 -f Chemical_Chemical.Examples.WaterElectrolysis.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: