Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.H2O_ElectrochemicalCell.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.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 101.6 kB / 16.35 MB, free: 5.828 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.00134/0.00134, allocations: 191 kB / 17.29 MB, free: 5.484 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.35/1.35, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08084/0.08084, allocations: 15.3 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 62.3 kB / 371.7 MB, free: 50.85 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09638/0.09768, allocations: 53.61 MB / 425.3 MB, free: 13.3 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66: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:4740:7-4740:66: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.H2O_ElectrochemicalCell): time 0.03467/0.1324, allocations: 27.58 MB / 452.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02228/0.1547, allocations: 19.39 MB / 472.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.1562, allocations: 15.94 kB / 472.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001664/0.1579, allocations: 0.504 MB / 472.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003825/0.1617, allocations: 1.222 MB / 474.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007743/0.1695, allocations: 2.834 MB / 476.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003402/0.1729, allocations: 2.09 MB / 479 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001995/0.1749, allocations: 1.345 MB / 480.3 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001543/0.1765, allocations: 0.9192 MB / 481.3 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00183/0.1784, allocations: 1.051 MB / 482.3 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004808/0.1789, allocations: 200 kB / 482.5 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007334/0.1862, allocations: 2.056 MB / 484.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005739/0.1868, allocations: 466.6 kB / 485 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001176/0.188, allocations: 0.9877 MB / 486 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009527/0.1975, allocations: 4.185 MB / 490.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1976, allocations: 0 / 490.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.1976, allocations: 4 kB / 490.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.515e-05/0.1977, allocations: 3.938 kB / 490.2 MB, free: 12.38 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004714/0.2024, allocations: 2.353 MB / 492.5 MB, free: 9.969 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.2025, allocations: 8.031 kB / 492.5 MB, free: 9.961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001563/0.204, allocations: 438 kB / 493 MB, free: 9.531 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001797/0.2058, allocations: 1.068 MB / 494 MB, free: 8.422 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/0.206, allocations: 187 kB / 494.2 MB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000245/0.2063, allocations: 171.8 kB / 494.4 MB, free: 8.059 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003057/0.2093, allocations: 2.206 MB / 496.6 MB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.194e-05/0.2094, allocations: 3.938 kB / 496.6 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001418/0.2095, allocations: 72 kB / 496.7 MB, free: 5.711 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.232e-05/0.2096, allocations: 40 kB / 496.7 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003566/0.2131, allocations: 2.676 MB / 499.4 MB, free: 2.988 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.01038/0.2235, allocations: 7.208 MB / 0.4947 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001653/0.2252, allocations: 1.18 MB / 0.4959 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007684/0.226, allocations: 0.5534 MB / 0.4964 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007421/0.2334, allocations: 5.123 MB / 0.5014 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.2335, allocations: 43.06 kB / 0.5015 GB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004841/0.234, allocations: 110.6 kB / 0.5016 GB, free: 3.887 MB / 382.1 MB Notification: Performance of pre-optimization done (n=71): time 2.505e-06/0.234, allocations: 0 / 0.5016 GB, free: 3.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=95): time 0.2181/0.4521, allocations: 4.809 MB / 0.5063 GB, free: 77.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.4522, allocations: 119.9 kB / 0.5064 GB, free: 77.56 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002107/0.4543, allocations: 1.467 MB / 0.5078 GB, free: 77.4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001809/0.4545, allocations: 42.42 kB / 0.5079 GB, free: 77.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006934/0.4552, allocations: 0.8925 MB / 0.5087 GB, free: 76.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003744/0.4556, allocations: 349.5 kB / 0.5091 GB, free: 76.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007037/0.4563, allocations: 355.2 kB / 0.5094 GB, free: 76.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.193e-05/0.4563, allocations: 304.2 kB / 0.5097 GB, free: 76.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/0.4574, allocations: 0.6205 MB / 0.5103 GB, free: 76.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.4587, allocations: 1.329 MB / 0.5116 GB, free: 75.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001964/0.4607, allocations: 1.927 MB / 0.5135 GB, free: 73.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-05/0.4607, allocations: 7.844 kB / 0.5135 GB, free: 73.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.006231/0.467, allocations: 2.36 MB / 0.5158 GB, free: 72.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.408e-05/0.467, allocations: 16.19 kB / 0.5158 GB, free: 72.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.475e-05/0.4671, allocations: 24.31 kB / 0.5158 GB, free: 72.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002682/0.4698, allocations: 372 kB / 0.5162 GB, free: 72.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002817/0.4726, allocations: 0.5633 MB / 0.5167 GB, free: 72.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00767/0.4803, allocations: 7.906 MB / 0.5244 GB, free: 65.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/0.4819, allocations: 85.58 kB / 0.5245 GB, free: 65.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000314/0.4822, allocations: 109.9 kB / 0.5246 GB, free: 65.06 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007832/0.483, allocations: 367.6 kB / 0.525 GB, free: 64.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003537/0.4834, allocations: 124.2 kB / 0.5251 GB, free: 64.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004608/0.488, allocations: 1.537 MB / 0.5266 GB, free: 64.13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.488, allocations: 7.875 kB / 0.5266 GB, free: 64.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.488, allocations: 3.938 kB / 0.5266 GB, free: 64.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.488, allocations: 7.5 kB / 0.5266 GB, free: 64.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006496/0.4945, allocations: 3.023 MB / 0.5296 GB, free: 62.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.4946, allocations: 7.875 kB / 0.5296 GB, free: 62.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008097/0.4954, allocations: 212.2 kB / 0.5298 GB, free: 62.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002554/0.498, allocations: 403.6 kB / 0.5302 GB, free: 62.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.813e-05/0.4981, allocations: 37.92 kB / 0.5302 GB, free: 62.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006144/0.5042, allocations: 7.714 MB / 0.5377 GB, free: 55.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.5042, allocations: 11.25 kB / 0.5377 GB, free: 55.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004343/0.5086, allocations: 2.161 MB / 0.5399 GB, free: 53.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004426/0.5091, allocations: 202.4 kB / 0.5401 GB, free: 53.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002666/0.5093, allocations: 32.08 kB / 0.5401 GB, free: 53.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008254/0.5102, allocations: 24.34 kB / 0.5401 GB, free: 53.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.5103, allocations: 114.8 kB / 0.5402 GB, free: 53.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.479e-05/0.5104, allocations: 50.67 kB / 0.5403 GB, free: 53.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001207/0.5116, allocations: 1.013 MB / 0.5413 GB, free: 52.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5117, allocations: 3.594 kB / 0.5413 GB, free: 52.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002812/0.5145, allocations: 0.8061 MB / 0.542 GB, free: 52.73 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001736/0.5162, allocations: 0.889 MB / 0.5429 GB, free: 52.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003047/0.5193, allocations: 1.77 MB / 0.5446 GB, free: 50.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.5193, allocations: 0 / 0.5446 GB, free: 50.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.5204, allocations: 0.9941 MB / 0.5456 GB, free: 49.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.5217, allocations: 234.5 kB / 0.5458 GB, free: 49.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004043/0.5258, allocations: 2.831 MB / 0.5486 GB, free: 46.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006205/0.5264, allocations: 1.218 MB / 0.5498 GB, free: 45.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009481/0.5274, allocations: 320.7 kB / 0.5501 GB, free: 44.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003069/0.5277, allocations: 182.1 kB / 0.5503 GB, free: 44.66 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.5277, allocations: 2.688 kB / 0.5503 GB, free: 44.66 MB / 382.1 MB Notification: Performance of Templates: time 0.03225/0.56, allocations: 27.67 MB / 0.5773 GB, free: 17.74 MB / 382.1 MB make -j1 -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.H2O_ElectrochemicalCell.sim & ./Chemical_Chemical.Examples.H2O_ElectrochemicalCell -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1)