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.08151/0.08151, allocations: 15.28 MB / 31.08 MB, free: 3.113 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.001162/0.001163, allocations: 202 kB / 36.15 MB, free: 2.137 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.345/1.345, allocations: 222.9 MB / 264 MB, free: 4.938 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.001032/0.001032, allocations: 118.2 kB / 318.4 MB, free: 3.426 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 59.17 kB / 382.7 MB, free: 48.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0906/0.09163, allocations: 53.61 MB / 436.3 MB, free: 1.035 MB / 298.7 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.03326/0.1249, allocations: 26.94 MB / 463.3 MB, free: 6.188 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01946/0.1444, allocations: 17.75 MB / 481 MB, free: 4.375 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002185/0.1467, allocations: 43.69 kB / 481.1 MB, free: 4.332 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001708/0.1484, allocations: 429.2 kB / 481.5 MB, free: 3.91 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004623/0.153, allocations: 1.153 MB / 482.6 MB, free: 2.75 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007462/0.1605, allocations: 2.207 MB / 484.8 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003576/0.1641, allocations: 2.21 MB / 487 MB, free: 14.31 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001788/0.166, allocations: 1.292 MB / 488.3 MB, free: 12.97 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00146/0.1674, allocations: 0.9814 MB / 489.3 MB, free: 11.99 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001501/0.169, allocations: 1.125 MB / 490.4 MB, free: 10.86 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002764/0.1692, allocations: 148 kB / 490.6 MB, free: 10.71 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006109/0.1754, allocations: 1.731 MB / 492.3 MB, free: 8.98 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006286/0.176, allocations: 446.4 kB / 492.7 MB, free: 8.543 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001422/0.1775, allocations: 1.03 MB / 493.8 MB, free: 7.508 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.1877, allocations: 3.908 MB / 497.7 MB, free: 3.586 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.1877, allocations: 0 / 497.7 MB, free: 3.586 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1877, allocations: 0 / 497.7 MB, free: 3.586 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.723e-05/0.1878, allocations: 0 / 497.7 MB, free: 3.586 MB / 362.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.004408/0.1922, allocations: 2.484 MB / 0.4884 GB, free: 1.047 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.1922, allocations: 12.88 kB / 0.4885 GB, free: 1.035 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001443/0.1937, allocations: 429.9 kB / 0.4889 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001628/0.1953, allocations: 1.079 MB / 0.4899 GB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001322/0.1955, allocations: 193.9 kB / 0.4901 GB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002439/0.1957, allocations: 195.9 kB / 0.4903 GB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00292/0.1987, allocations: 2.128 MB / 0.4924 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.441e-05/0.1987, allocations: 7.938 kB / 0.4924 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000157/0.1989, allocations: 80 kB / 0.4925 GB, free: 12.83 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.699e-05/0.1989, allocations: 48 kB / 0.4925 GB, free: 12.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003216/0.2021, allocations: 2.241 MB / 0.4947 GB, free: 10.54 MB / 378.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.009798/0.212, allocations: 7.354 MB / 0.5019 GB, free: 2.824 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00251/0.2145, allocations: 1.725 MB / 0.5036 GB, free: 1.031 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008258/0.2153, allocations: 0.5731 MB / 0.5041 GB, free: 460 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1856/0.4009, allocations: 6.39 MB / 0.5104 GB, free: 65.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.401, allocations: 46.67 kB / 0.5104 GB, free: 65.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=88): time 2.615e-06/0.401, allocations: 2.406 kB / 0.5104 GB, free: 65.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=106): time 0.01658/0.4176, allocations: 4.838 MB / 0.5151 GB, free: 64.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.4177, allocations: 115.5 kB / 0.5152 GB, free: 64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001177/0.4189, allocations: 0.9229 MB / 0.5161 GB, free: 63.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.535e-05/0.4189, allocations: 41.33 kB / 0.5162 GB, free: 63.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004736/0.4194, allocations: 0.93 MB / 0.5171 GB, free: 63.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002431/0.4197, allocations: 390.6 kB / 0.5175 GB, free: 63.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004137/0.4201, allocations: 343.1 kB / 0.5178 GB, free: 62.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.119e-05/0.4201, allocations: 302.4 kB / 0.5181 GB, free: 62.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007388/0.4209, allocations: 457.4 kB / 0.5185 GB, free: 62.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/0.422, allocations: 1.196 MB / 0.5197 GB, free: 61.76 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002012/0.4241, allocations: 1.791 MB / 0.5214 GB, free: 60.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/0.4241, allocations: 7.375 kB / 0.5214 GB, free: 60.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004836/0.4289, allocations: 2.068 MB / 0.5235 GB, free: 60.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.429, allocations: 18.19 kB / 0.5235 GB, free: 60.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.225e-05/0.429, allocations: 26.48 kB / 0.5235 GB, free: 60.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002315/0.4313, allocations: 380.1 kB / 0.5239 GB, free: 60.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/0.4329, allocations: 456.5 kB / 0.5243 GB, free: 60.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004351/0.4373, allocations: 3.847 MB / 0.5281 GB, free: 56.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/0.4386, allocations: 120.6 kB / 0.5282 GB, free: 56.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/0.4387, allocations: 109.4 kB / 0.5283 GB, free: 56.83 MB / 378.7 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005744/0.4393, allocations: 378.5 kB / 0.5286 GB, free: 56.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002159/0.4395, allocations: 128.5 kB / 0.5288 GB, free: 56.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004454/0.444, allocations: 1.618 MB / 0.5303 GB, free: 55.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.444, allocations: 14 kB / 0.5304 GB, free: 55.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.444, allocations: 2.281 kB / 0.5304 GB, free: 55.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.444, allocations: 8.516 kB / 0.5304 GB, free: 55.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.4461, allocations: 1.475 MB / 0.5318 GB, free: 55.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.4461, allocations: 5.906 kB / 0.5318 GB, free: 55.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.4474, allocations: 238.5 kB / 0.532 GB, free: 55.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002214/0.4496, allocations: 347.6 kB / 0.5324 GB, free: 55.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.568e-05/0.4497, allocations: 54 kB / 0.5324 GB, free: 55.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003557/0.4533, allocations: 3.77 MB / 0.5361 GB, free: 51.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.4533, allocations: 7.906 kB / 0.5361 GB, free: 51.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02037/0.4736, allocations: 11.06 MB / 0.5469 GB, free: 43.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002333/0.4739, allocations: 192.4 kB / 0.5471 GB, free: 43.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.474, allocations: 27.44 kB / 0.5471 GB, free: 43.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006809/0.4747, allocations: 58.81 kB / 0.5472 GB, free: 43.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/0.4749, allocations: 100 kB / 0.5473 GB, free: 43.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.094e-05/0.475, allocations: 52.17 kB / 0.5473 GB, free: 43.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005202/0.4755, allocations: 0.5723 MB / 0.5479 GB, free: 42.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4756, allocations: 0 / 0.5479 GB, free: 42.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002192/0.4778, allocations: 0.8784 MB / 0.5487 GB, free: 42.68 MB / 378.7 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009458/0.4787, allocations: 0.7033 MB / 0.5494 GB, free: 42.15 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002073/0.4808, allocations: 1.54 MB / 0.5509 GB, free: 40.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4808, allocations: 0 / 0.5509 GB, free: 40.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009663/0.4818, allocations: 0.8217 MB / 0.5517 GB, free: 39.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.483, allocations: 231.8 kB / 0.552 GB, free: 39.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004467/0.4875, allocations: 4.685 MB / 0.5565 GB, free: 34.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005307/0.488, allocations: 1.293 MB / 0.5578 GB, free: 33.65 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001265/0.4893, allocations: 353.9 kB / 0.5581 GB, free: 33.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003895/0.4897, allocations: 216.4 kB / 0.5583 GB, free: 33.2 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.4897, allocations: 4 kB / 0.5583 GB, free: 33.19 MB / 378.7 MB Notification: Performance of Templates: time 0.03068/0.5204, allocations: 27.47 MB / 0.5852 GB, free: 6.18 MB / 378.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)