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.001444/0.001443, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001456/0.001456, allocations: 191.9 kB / 16.13 MB, free: 6.707 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.435/1.435, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2294/0.2294, allocations: 15.31 MB / 305.3 MB, free: 15.37 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 71.88 kB / 369.6 MB, free: 4.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1093, allocations: 53.61 MB / 423.3 MB, free: 14.8 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.376/0.4854, allocations: 28.75 MB / 452 MB, free: 38.85 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01776/0.5032, allocations: 17.84 MB / 469.8 MB, free: 31.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002281/0.5055, allocations: 42.62 kB / 469.9 MB, free: 31.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001785/0.5073, allocations: 418.1 kB / 470.3 MB, free: 31.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004388/0.5117, allocations: 1.175 MB / 471.5 MB, free: 30.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007802/0.5196, allocations: 2.218 MB / 473.7 MB, free: 29.24 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003554/0.5232, allocations: 2.187 MB / 475.9 MB, free: 28.17 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002006/0.5252, allocations: 1.297 MB / 477.2 MB, free: 27.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002014/0.5272, allocations: 0.974 MB / 478.2 MB, free: 27.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002251/0.5295, allocations: 1.123 MB / 479.3 MB, free: 26.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007225/0.5302, allocations: 148.8 kB / 479.4 MB, free: 26.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00751/0.5377, allocations: 1.747 MB / 481.2 MB, free: 26.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008826/0.5387, allocations: 445.8 kB / 481.6 MB, free: 26.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002325/0.541, allocations: 1.03 MB / 482.6 MB, free: 25.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009811/0.5508, allocations: 3.913 MB / 486.5 MB, free: 23.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.5509, allocations: 3.938 kB / 486.5 MB, free: 23.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5509, allocations: 4 kB / 486.6 MB, free: 23.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001247/0.551, allocations: 0 / 486.6 MB, free: 23.78 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.007442/0.5585, allocations: 2.484 MB / 489 MB, free: 22.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.5585, allocations: 17.12 kB / 489.1 MB, free: 22.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002319/0.5609, allocations: 426.6 kB / 489.5 MB, free: 22.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00258/0.5635, allocations: 1.09 MB / 490.6 MB, free: 21.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001821/0.5637, allocations: 181.6 kB / 490.7 MB, free: 21.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005009/0.5642, allocations: 205.6 kB / 490.9 MB, free: 21.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004539/0.5687, allocations: 2.129 MB / 493.1 MB, free: 20.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.941e-05/0.5688, allocations: 3.938 kB / 493.1 MB, free: 20.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001677/0.569, allocations: 77.75 kB / 493.1 MB, free: 20.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.771e-05/0.569, allocations: 50.53 kB / 493.2 MB, free: 20.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003261/0.5723, allocations: 2.241 MB / 495.4 MB, free: 19.7 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.01015/0.5824, allocations: 7.354 MB / 0.491 GB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002355/0.5848, allocations: 1.746 MB / 0.4927 GB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007941/0.5856, allocations: 0.5753 MB / 0.4933 GB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007954/0.5936, allocations: 6.388 MB / 0.4995 GB, free: 6.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.5936, allocations: 48.25 kB / 0.4996 GB, free: 6.125 MB / 366.1 MB Notification: Performance of pre-optimization done (n=88): time 3.296e-06/0.5937, allocations: 0 / 0.4996 GB, free: 6.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.01817/0.6118, allocations: 4.851 MB / 0.5043 GB, free: 1.762 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.6119, allocations: 111.8 kB / 0.5044 GB, free: 1.625 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009857/0.6129, allocations: 0.9194 MB / 0.5053 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.022e-05/0.613, allocations: 41.7 kB / 0.5053 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004196/0.6134, allocations: 0.9254 MB / 0.5062 GB, free: 15.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003203/0.6137, allocations: 389.8 kB / 0.5066 GB, free: 15.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004826/0.6142, allocations: 349.2 kB / 0.5069 GB, free: 15.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.6143, allocations: 309.1 kB / 0.5072 GB, free: 14.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008159/0.6152, allocations: 451.8 kB / 0.5077 GB, free: 14.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00135/0.6165, allocations: 1.195 MB / 0.5088 GB, free: 12.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0023/0.6188, allocations: 1.794 MB / 0.5106 GB, free: 10.81 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.6189, allocations: 4 kB / 0.5106 GB, free: 10.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005279/0.6241, allocations: 2.069 MB / 0.5126 GB, free: 8.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.263e-05/0.6242, allocations: 16.59 kB / 0.5126 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.473e-05/0.6242, allocations: 24 kB / 0.5127 GB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00267/0.6269, allocations: 374.2 kB / 0.513 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/0.6287, allocations: 451.3 kB / 0.5134 GB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005346/0.634, allocations: 3.852 MB / 0.5172 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001537/0.6356, allocations: 127.6 kB / 0.5173 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001782/0.6358, allocations: 111.9 kB / 0.5174 GB, free: 3.488 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.0006991/0.6365, allocations: 381 kB / 0.5178 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002797/0.6368, allocations: 126.4 kB / 0.5179 GB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004909/0.6417, allocations: 1.606 MB / 0.5195 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.6417, allocations: 15.98 kB / 0.5195 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.6417, allocations: 0 / 0.5195 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.6417, allocations: 11.92 kB / 0.5195 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002343/0.6441, allocations: 1.485 MB / 0.521 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.6441, allocations: 4 kB / 0.521 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.6453, allocations: 240.1 kB / 0.5212 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002482/0.6478, allocations: 362.1 kB / 0.5215 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.6479, allocations: 39.98 kB / 0.5216 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004908/0.6529, allocations: 3.765 MB / 0.5253 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.6529, allocations: 4 kB / 0.5253 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005197/0.6581, allocations: 2.207 MB / 0.5274 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004103/0.6585, allocations: 187.4 kB / 0.5276 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001701/0.6587, allocations: 28 kB / 0.5276 GB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007303/0.6594, allocations: 47.97 kB / 0.5277 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/0.6597, allocations: 96.91 kB / 0.5278 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.795e-05/0.6598, allocations: 55.86 kB / 0.5278 GB, free: 8.367 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00073/0.6605, allocations: 0.5814 MB / 0.5284 GB, free: 7.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6605, allocations: 4 kB / 0.5284 GB, free: 7.773 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002302/0.6628, allocations: 0.7144 MB / 0.5291 GB, free: 7.059 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.001408/0.6642, allocations: 0.7112 MB / 0.5298 GB, free: 6.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002685/0.6669, allocations: 1.534 MB / 0.5313 GB, free: 4.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.6669, allocations: 0 / 0.5313 GB, free: 4.785 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.6683, allocations: 0.8204 MB / 0.5321 GB, free: 3.938 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.6697, allocations: 227.5 kB / 0.5323 GB, free: 3.719 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005216/0.6749, allocations: 3.801 MB / 0.536 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008027/0.6757, allocations: 1.251 MB / 0.5372 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001351/0.6771, allocations: 334.9 kB / 0.5375 GB, free: 14.24 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004381/0.6775, allocations: 215.3 kB / 0.5377 GB, free: 14.03 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.6775, allocations: 0 / 0.5377 GB, free: 14.03 MB / 414.1 MB Notification: Performance of Templates: time 0.03832/0.7158, allocations: 24.11 MB / 0.5613 GB, free: 5.977 MB / 430.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)