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.001562/0.001562, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00194/0.00194, allocations: 195.7 kB / 16.79 MB, free: 6.809 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.548/1.548, allocations: 222.9 MB / 240.5 MB, free: 4.664 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2261/0.2261, allocations: 15.32 MB / 305.9 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.89 kB / 370.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1045, allocations: 53.62 MB / 423.9 MB, free: 14.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.3495/0.454, allocations: 29.4 MB / 453.3 MB, free: 38.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01661/0.4706, allocations: 17.83 MB / 471.1 MB, free: 31.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002407/0.4731, allocations: 43.75 kB / 471.2 MB, free: 31.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001597/0.4747, allocations: 423.9 kB / 471.6 MB, free: 31.17 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004274/0.479, allocations: 1.172 MB / 472.8 MB, free: 30.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00668/0.4857, allocations: 2.216 MB / 475 MB, free: 29.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003058/0.4888, allocations: 2.185 MB / 477.2 MB, free: 28.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001537/0.4904, allocations: 1.287 MB / 478.5 MB, free: 27.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001454/0.4918, allocations: 0.9833 MB / 479.4 MB, free: 27.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00132/0.4932, allocations: 1.124 MB / 480.6 MB, free: 26.74 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003154/0.4935, allocations: 147.9 kB / 480.7 MB, free: 26.74 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006229/0.4997, allocations: 1.748 MB / 482.5 MB, free: 26.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000595/0.5004, allocations: 447.5 kB / 482.9 MB, free: 26.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001392/0.5018, allocations: 1.031 MB / 483.9 MB, free: 25.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004065/0.5058, allocations: 3.089 MB / 487 MB, free: 24.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.5059, allocations: 4 kB / 487 MB, free: 24.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5059, allocations: 4.812 kB / 487 MB, free: 24.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.156e-05/0.5059, allocations: 0 / 487 MB, free: 24.16 MB / 366.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.004551/0.5105, allocations: 2.486 MB / 489.5 MB, free: 22.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/0.5105, allocations: 9.438 kB / 489.5 MB, free: 22.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001951/0.5125, allocations: 430.3 kB / 489.9 MB, free: 22.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002396/0.5149, allocations: 1.089 MB / 491 MB, free: 21.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002097/0.5151, allocations: 182.7 kB / 491.2 MB, free: 21.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003267/0.5155, allocations: 204.8 kB / 491.4 MB, free: 21.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003422/0.5189, allocations: 2.126 MB / 493.5 MB, free: 20.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.663e-05/0.519, allocations: 3.5 kB / 493.5 MB, free: 20.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001642/0.5191, allocations: 82.12 kB / 493.6 MB, free: 20.76 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.5192, allocations: 46.88 kB / 493.7 MB, free: 20.76 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003284/0.5225, allocations: 2.239 MB / 495.9 MB, free: 20.09 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.009688/0.5322, allocations: 7.366 MB / 0.4915 GB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002305/0.5345, allocations: 1.736 MB / 0.4932 GB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007532/0.5353, allocations: 0.5749 MB / 0.4937 GB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007604/0.5429, allocations: 6.388 MB / 0.5 GB, free: 6.602 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.5429, allocations: 48.36 kB / 0.5 GB, free: 6.547 MB / 366.1 MB Notification: Performance of pre-optimization done (n=88): time 2.605e-06/0.5429, allocations: 0 / 0.5 GB, free: 6.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.01884/0.5618, allocations: 4.845 MB / 0.5047 GB, free: 2.191 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.5619, allocations: 115.8 kB / 0.5049 GB, free: 2.051 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009556/0.5628, allocations: 0.9128 MB / 0.5057 GB, free: 1.168 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001275/0.563, allocations: 45.7 kB / 0.5058 GB, free: 1.117 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000349/0.5633, allocations: 0.9401 MB / 0.5067 GB, free: 164 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000332/0.5637, allocations: 378.9 kB / 0.5071 GB, free: 15.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004675/0.5641, allocations: 347.1 kB / 0.5074 GB, free: 15.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.5643, allocations: 305.2 kB / 0.5077 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008125/0.5651, allocations: 455.8 kB / 0.5081 GB, free: 14.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/0.5664, allocations: 1.195 MB / 0.5093 GB, free: 13.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002381/0.5688, allocations: 1.794 MB / 0.511 GB, free: 11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.426e-05/0.5688, allocations: 8 kB / 0.5111 GB, free: 10.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005607/0.5744, allocations: 2.069 MB / 0.5131 GB, free: 8.902 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4e-05/0.5745, allocations: 16 kB / 0.5131 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.044e-05/0.5746, allocations: 24 kB / 0.5131 GB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002732/0.5773, allocations: 382.3 kB / 0.5135 GB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001891/0.5792, allocations: 447.3 kB / 0.5139 GB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005649/0.5849, allocations: 3.85 MB / 0.5177 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/0.5866, allocations: 127.5 kB / 0.5178 GB, free: 3.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002357/0.5868, allocations: 108 kB / 0.5179 GB, free: 3.672 MB / 382.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.0008366/0.5877, allocations: 377.1 kB / 0.5182 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003585/0.588, allocations: 122.4 kB / 0.5184 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005254/0.5933, allocations: 1.614 MB / 0.5199 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/0.5933, allocations: 12 kB / 0.52 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.5934, allocations: 4 kB / 0.52 GB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.117e-05/0.5934, allocations: 7.922 kB / 0.52 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00276/0.5962, allocations: 1.488 MB / 0.5214 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.5962, allocations: 4.312 kB / 0.5214 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001296/0.5975, allocations: 243.7 kB / 0.5217 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00271/0.6002, allocations: 346.2 kB / 0.522 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001748/0.6004, allocations: 43.98 kB / 0.522 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005132/0.6056, allocations: 3.753 MB / 0.5257 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.6056, allocations: 4 kB / 0.5257 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005401/0.611, allocations: 2.211 MB / 0.5279 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004602/0.6115, allocations: 191.4 kB / 0.528 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001947/0.6117, allocations: 35.98 kB / 0.5281 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007845/0.6125, allocations: 44.02 kB / 0.5281 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002365/0.6128, allocations: 104.9 kB / 0.5282 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.6129, allocations: 59.91 kB / 0.5283 GB, free: 8.547 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007732/0.6136, allocations: 0.5698 MB / 0.5288 GB, free: 7.969 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6137, allocations: 0 / 0.5288 GB, free: 7.969 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002528/0.6162, allocations: 0.7144 MB / 0.5295 GB, free: 7.254 MB / 398.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.001484/0.6177, allocations: 0.7151 MB / 0.5302 GB, free: 6.531 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00279/0.6205, allocations: 1.525 MB / 0.5317 GB, free: 4.984 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.6205, allocations: 1.938 kB / 0.5317 GB, free: 4.984 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/0.6219, allocations: 0.8314 MB / 0.5325 GB, free: 4.125 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001554/0.6234, allocations: 226 kB / 0.5327 GB, free: 3.906 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005618/0.6291, allocations: 3.849 MB / 0.5365 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000841/0.6299, allocations: 1.251 MB / 0.5377 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006711/0.6306, allocations: 275.5 kB / 0.538 GB, free: 14.43 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6306, allocations: 0 / 0.538 GB, free: 14.43 MB / 414.1 MB Notification: Performance of Templates: time 0.04743/0.6781, allocations: 43.05 MB / 0.58 GB, free: 3.402 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)