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.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-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.01144/0.01144, allocations: 109.1 kB / 15.74 MB, free: 6.016 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.002367/0.002367, allocations: 194.3 kB / 16.68 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2443/0.2443, allocations: 15.32 MB / 305.8 MB, free: 15.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 67.89 kB / 425.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.3501, allocations: 53.59 MB / 478.8 MB, free: 25.82 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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.1-master/package.mo:3019:6-3019: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.04288/0.3931, allocations: 28.49 MB / 0.4954 GB, free: 6.148 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01928/0.4124, allocations: 17.81 MB / 0.5128 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001923/0.4143, allocations: 23.88 kB / 0.5128 GB, free: 4.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001443/0.4158, allocations: 488.1 kB / 0.5133 GB, free: 3.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004256/0.42, allocations: 1.307 MB / 0.5145 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00681/0.4269, allocations: 2.528 MB / 0.517 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003644/0.4305, allocations: 2.284 MB / 0.5192 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00184/0.4324, allocations: 1.515 MB / 0.5207 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001353/0.4338, allocations: 1.028 MB / 0.5217 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001386/0.4352, allocations: 1.156 MB / 0.5229 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002801/0.4355, allocations: 224 kB / 0.5231 GB, free: 9.637 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00596/0.4414, allocations: 1.81 MB / 0.5248 GB, free: 7.824 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005457/0.442, allocations: 0.4985 MB / 0.5253 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001342/0.4434, allocations: 1.104 MB / 0.5264 GB, free: 6.215 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01033/0.4537, allocations: 4.177 MB / 0.5305 GB, free: 2.023 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.4537, allocations: 0 / 0.5305 GB, free: 2.023 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4538, allocations: 0 / 0.5305 GB, free: 2.023 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.254e-05/0.4538, allocations: 0 / 0.5305 GB, free: 2.023 MB / 398.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.005056/0.4589, allocations: 2.498 MB / 0.5329 GB, free: 15.47 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.4589, allocations: 12.03 kB / 0.5329 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001593/0.4605, allocations: 431.1 kB / 0.5333 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001894/0.4624, allocations: 1.111 MB / 0.5344 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/0.4626, allocations: 178 kB / 0.5346 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002766/0.4629, allocations: 203.9 kB / 0.5348 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00333/0.4662, allocations: 2.135 MB / 0.5369 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.751e-05/0.4663, allocations: 0 / 0.5369 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001676/0.4665, allocations: 87.98 kB / 0.537 GB, free: 11.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-05/0.4665, allocations: 48 kB / 0.537 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003614/0.4701, allocations: 2.233 MB / 0.5392 GB, free: 8.934 MB / 414.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.01069/0.4808, allocations: 7.326 MB / 0.5463 GB, free: 1.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002583/0.4834, allocations: 1.733 MB / 0.548 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008525/0.4843, allocations: 0.5846 MB / 0.5486 GB, free: 14.86 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008609/0.4929, allocations: 6.353 MB / 0.5548 GB, free: 7.766 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/0.493, allocations: 47.5 kB / 0.5549 GB, free: 7.711 MB / 430.1 MB Notification: Performance of pre-optimization done (n=88): time 2.775e-06/0.493, allocations: 4 kB / 0.5549 GB, free: 7.707 MB / 430.1 MB Notification: Performance of matching and sorting (n=106): time 0.01947/0.5125, allocations: 4.853 MB / 0.5596 GB, free: 2.758 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.571e-05/0.5126, allocations: 119.8 kB / 0.5597 GB, free: 2.617 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/0.5137, allocations: 0.9156 MB / 0.5606 GB, free: 1.684 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.421e-05/0.5138, allocations: 45.7 kB / 0.5607 GB, free: 1.633 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000587/0.5144, allocations: 0.9324 MB / 0.5616 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003132/0.5147, allocations: 382.7 kB / 0.5619 GB, free: 312 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004652/0.5152, allocations: 343.2 kB / 0.5623 GB, free: 15.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.5153, allocations: 305.1 kB / 0.5625 GB, free: 15.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007769/0.5161, allocations: 459.8 kB / 0.563 GB, free: 15.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.5174, allocations: 1.195 MB / 0.5642 GB, free: 13.66 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002188/0.5196, allocations: 1.794 MB / 0.5659 GB, free: 11.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.949e-06/0.5196, allocations: 4 kB / 0.5659 GB, free: 11.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005001/0.5246, allocations: 2.073 MB / 0.5679 GB, free: 9.418 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.57e-05/0.5247, allocations: 19.94 kB / 0.568 GB, free: 9.398 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-05/0.5247, allocations: 28 kB / 0.568 GB, free: 9.371 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002408/0.5272, allocations: 385.9 kB / 0.5683 GB, free: 8.988 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001688/0.5289, allocations: 443.3 kB / 0.5688 GB, free: 8.555 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005232/0.5341, allocations: 4.063 MB / 0.5727 GB, free: 4.191 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.5354, allocations: 87.72 kB / 0.5728 GB, free: 4.105 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/0.5356, allocations: 108 kB / 0.5729 GB, free: 4 MB / 446.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 (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.0006643/0.5362, allocations: 377.1 kB / 0.5733 GB, free: 3.621 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002393/0.5365, allocations: 122.4 kB / 0.5734 GB, free: 3.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004661/0.5411, allocations: 1.618 MB / 0.575 GB, free: 1.867 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.5412, allocations: 12 kB / 0.575 GB, free: 1.855 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.5412, allocations: 4 kB / 0.575 GB, free: 1.852 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.5412, allocations: 11.97 kB / 0.575 GB, free: 1.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.5433, allocations: 1.469 MB / 0.5764 GB, free: 292 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.5433, allocations: 4 kB / 0.5764 GB, free: 288 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/0.5445, allocations: 247.6 kB / 0.5767 GB, free: 40 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002377/0.5469, allocations: 346.2 kB / 0.577 GB, free: 15.69 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.869e-05/0.547, allocations: 39.98 kB / 0.577 GB, free: 15.65 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004863/0.5519, allocations: 4.004 MB / 0.581 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.5519, allocations: 8.062 kB / 0.581 GB, free: 11.33 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004774/0.5567, allocations: 2.207 MB / 0.5831 GB, free: 9.066 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003184/0.557, allocations: 191.4 kB / 0.5833 GB, free: 8.859 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001383/0.5572, allocations: 27.94 kB / 0.5833 GB, free: 8.832 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006671/0.5578, allocations: 31.98 kB / 0.5834 GB, free: 8.801 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.5581, allocations: 96.88 kB / 0.5835 GB, free: 8.703 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.242e-05/0.5582, allocations: 51.98 kB / 0.5835 GB, free: 8.652 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007114/0.5589, allocations: 0.5775 MB / 0.5841 GB, free: 8.066 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5589, allocations: 0 / 0.5841 GB, free: 8.066 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00213/0.561, allocations: 0.7261 MB / 0.5848 GB, free: 7.34 MB / 462.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 (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.001203/0.5622, allocations: 0.7056 MB / 0.5855 GB, free: 6.629 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002511/0.5647, allocations: 1.546 MB / 0.587 GB, free: 5.066 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.5648, allocations: 3.938 kB / 0.587 GB, free: 5.062 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.566, allocations: 0.8241 MB / 0.5878 GB, free: 4.215 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.5673, allocations: 236.7 kB / 0.588 GB, free: 3.984 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004596/0.5719, allocations: 3.004 MB / 0.5909 GB, free: 0.9141 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007687/0.5727, allocations: 1.255 MB / 0.5922 GB, free: 15.62 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001015/0.5737, allocations: 338.5 kB / 0.5925 GB, free: 15.29 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004106/0.5741, allocations: 215.2 kB / 0.5927 GB, free: 15.08 MB / 478.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5741, allocations: 0 / 0.5927 GB, free: 15.08 MB / 478.1 MB Notification: Performance of Templates: time 0.3376/0.9117, allocations: 25.76 MB / 0.6179 GB, free: 114.8 MB / 478.1 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)