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.0008628/0.0008627, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005659/0.005659, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.368/1.368, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2017/0.2017, allocations: 15.28 MB / 306.7 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003176/0.0003176, allocations: 8 kB / 372.1 MB, free: 3.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3101, allocations: 54.62 MB / 426.7 MB, free: 40.41 MB / 350.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.03095/0.3411, allocations: 28.25 MB / 455 MB, free: 29.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01782/0.3589, allocations: 17.66 MB / 472.6 MB, free: 17.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002086/0.3611, allocations: 37.25 kB / 472.7 MB, free: 17.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001423/0.3625, allocations: 416.7 kB / 473.1 MB, free: 17.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004204/0.3667, allocations: 1.168 MB / 474.2 MB, free: 16.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007135/0.3739, allocations: 2.218 MB / 476.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003499/0.3774, allocations: 2.192 MB / 478.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00185/0.3793, allocations: 1.22 MB / 479.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001617/0.3809, allocations: 0.9106 MB / 480.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00174/0.3827, allocations: 1.049 MB / 481.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004811/0.3832, allocations: 116 kB / 481.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007397/0.3906, allocations: 1.718 MB / 483.7 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007658/0.3914, allocations: 390.9 kB / 484 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001893/0.3933, allocations: 1.002 MB / 485 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01039/0.4037, allocations: 3.852 MB / 488.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.4038, allocations: 0.7969 kB / 488.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.4038, allocations: 0 / 488.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001684/0.404, allocations: 0 / 488.9 MB, free: 5.684 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.005977/0.41, allocations: 2.106 MB / 491 MB, free: 3.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.41, allocations: 8.031 kB / 491 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002236/0.4123, allocations: 432 kB / 491.4 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002466/0.4148, allocations: 1.07 MB / 492.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001872/0.415, allocations: 190 kB / 492.7 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005156/0.4155, allocations: 197.3 kB / 492.9 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004468/0.42, allocations: 2.132 MB / 495 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.244e-05/0.4201, allocations: 3.938 kB / 495 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002256/0.4203, allocations: 80 kB / 495.1 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.023e-05/0.4203, allocations: 52 kB / 495.1 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004393/0.4247, allocations: 2.236 MB / 497.4 MB, free: 14.21 MB / 366.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.01265/0.4374, allocations: 7.341 MB / 0.4929 GB, free: 7.469 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002827/0.4403, allocations: 1.739 MB / 0.4946 GB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009617/0.4413, allocations: 0.577 MB / 0.4952 GB, free: 5.082 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00888/0.4502, allocations: 6.27 MB / 0.5013 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.968e-05/0.4502, allocations: 51.56 kB / 0.5013 GB, free: 14.01 MB / 382.1 MB Notification: Performance of pre-optimization done (n=88): time 4.549e-06/0.4502, allocations: 3.984 kB / 0.5013 GB, free: 14.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.02042/0.4707, allocations: 4.897 MB / 0.5061 GB, free: 9.023 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.447e-05/0.4708, allocations: 119.8 kB / 0.5062 GB, free: 8.879 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001372/0.4722, allocations: 0.9195 MB / 0.5071 GB, free: 7.941 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001239/0.4723, allocations: 41.7 kB / 0.5072 GB, free: 7.895 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006646/0.473, allocations: 0.9324 MB / 0.5081 GB, free: 6.945 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003635/0.4733, allocations: 378.6 kB / 0.5084 GB, free: 6.566 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.4736, allocations: 145.6 kB / 0.5086 GB, free: 6.418 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.4737, allocations: 305.2 kB / 0.5089 GB, free: 6.117 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000916/0.4746, allocations: 459.8 kB / 0.5093 GB, free: 5.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001457/0.4761, allocations: 1.195 MB / 0.5105 GB, free: 4.121 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002717/0.4788, allocations: 1.798 MB / 0.5122 GB, free: 1.969 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.082e-05/0.4788, allocations: 8 kB / 0.5122 GB, free: 1.961 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.00592/0.4848, allocations: 2.077 MB / 0.5143 GB, free: 15.87 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/0.4848, allocations: 16 kB / 0.5143 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.603e-05/0.4849, allocations: 24 kB / 0.5143 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002784/0.4877, allocations: 398.3 kB / 0.5147 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001901/0.4896, allocations: 451.3 kB / 0.5151 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005965/0.4956, allocations: 3.858 MB / 0.5189 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001779/0.4974, allocations: 127.6 kB / 0.519 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003682/0.4978, allocations: 108 kB / 0.5191 GB, free: 10.61 MB / 398.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.001298/0.4991, allocations: 377 kB / 0.5195 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004626/0.4996, allocations: 126.4 kB / 0.5196 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005653/0.5052, allocations: 1.626 MB / 0.5212 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.5052, allocations: 12 kB / 0.5212 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.5053, allocations: 4 kB / 0.5212 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/0.5053, allocations: 15.84 kB / 0.5212 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002909/0.5082, allocations: 1.481 MB / 0.5226 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-05/0.5082, allocations: 0 / 0.5226 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001281/0.5095, allocations: 243.7 kB / 0.5229 GB, free: 6.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002724/0.5123, allocations: 370.1 kB / 0.5232 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000142/0.5124, allocations: 47.98 kB / 0.5233 GB, free: 6.211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005196/0.5176, allocations: 3.787 MB / 0.527 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.5176, allocations: 4 kB / 0.527 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005428/0.5231, allocations: 2.211 MB / 0.5291 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004075/0.5235, allocations: 195.4 kB / 0.5293 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002317/0.5238, allocations: 24 kB / 0.5293 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008469/0.5246, allocations: 47.89 kB / 0.5294 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002329/0.5249, allocations: 100.8 kB / 0.5295 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.525, allocations: 55.92 kB / 0.5295 GB, free: 15.42 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009052/0.5259, allocations: 0.5736 MB / 0.5301 GB, free: 14.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5259, allocations: 0 / 0.5301 GB, free: 14.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002562/0.5285, allocations: 0.7222 MB / 0.5308 GB, free: 14.11 MB / 414.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.001637/0.5301, allocations: 0.707 MB / 0.5315 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002832/0.533, allocations: 1.534 MB / 0.533 GB, free: 11.85 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.533, allocations: 0 / 0.533 GB, free: 11.85 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001352/0.5343, allocations: 0.8201 MB / 0.5338 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001896/0.5363, allocations: 232.9 kB / 0.534 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006424/0.5427, allocations: 3.924 MB / 0.5379 GB, free: 6.781 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/0.5439, allocations: 1.255 MB / 0.5391 GB, free: 5.496 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001537/0.5455, allocations: 342.8 kB / 0.5394 GB, free: 5.156 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004902/0.546, allocations: 215.3 kB / 0.5396 GB, free: 4.945 MB / 414.1 MB Notification: Performance of SimCode: time 8.61e-07/0.546, allocations: 0 / 0.5396 GB, free: 4.945 MB / 414.1 MB Notification: Performance of Templates: time 0.04095/0.5869, allocations: 24.08 MB / 0.5631 GB, free: 12.92 MB / 446.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)