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.001453/0.001453, allocations: 108.1 kB / 16.41 MB, free: 6.496 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.001504/0.001505, allocations: 185.5 kB / 17.34 MB, free: 5.762 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: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08467/0.08467, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 59.91 kB / 425.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1201, allocations: 53.61 MB / 479.5 MB, free: 5.828 MB / 350.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.03925/0.1594, allocations: 27.8 MB / 0.4954 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2534/0.4128, allocations: 19.37 MB / 0.5143 GB, free: 18.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001212/0.4141, allocations: 20.31 kB / 0.5143 GB, free: 18.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00133/0.4154, allocations: 0.4962 MB / 0.5148 GB, free: 18.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003491/0.4189, allocations: 1.226 MB / 0.516 GB, free: 17.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008449/0.4274, allocations: 2.828 MB / 0.5187 GB, free: 16.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003351/0.4308, allocations: 2.095 MB / 0.5208 GB, free: 16.24 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002035/0.4328, allocations: 1.351 MB / 0.5221 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001878/0.4347, allocations: 0.9084 MB / 0.523 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001941/0.4367, allocations: 1.051 MB / 0.524 GB, free: 15.15 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004126/0.4371, allocations: 199.8 kB / 0.5242 GB, free: 15.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008059/0.4452, allocations: 2.058 MB / 0.5262 GB, free: 14.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007317/0.4459, allocations: 473.3 kB / 0.5267 GB, free: 14.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001374/0.4473, allocations: 0.9819 MB / 0.5276 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0113/0.4586, allocations: 4.2 MB / 0.5317 GB, free: 12.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.4587, allocations: 2.75 kB / 0.5317 GB, free: 12.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4587, allocations: 0 / 0.5317 GB, free: 12.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.545e-05/0.4587, allocations: 2.812 kB / 0.5317 GB, free: 12.21 MB / 382.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.004769/0.4635, allocations: 2.345 MB / 0.534 GB, free: 10.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.4636, allocations: 8.719 kB / 0.534 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001713/0.4653, allocations: 439.3 kB / 0.5345 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001643/0.467, allocations: 1.077 MB / 0.5355 GB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.4671, allocations: 186.9 kB / 0.5357 GB, free: 9.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002611/0.4674, allocations: 169.2 kB / 0.5359 GB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003022/0.4704, allocations: 2.204 MB / 0.538 GB, free: 8.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.027e-05/0.4705, allocations: 3.938 kB / 0.538 GB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001518/0.4706, allocations: 70.5 kB / 0.5381 GB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.936e-05/0.4707, allocations: 43.97 kB / 0.5381 GB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003307/0.474, allocations: 2.677 MB / 0.5407 GB, free: 6.844 MB / 382.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.009075/0.4831, allocations: 7.23 MB / 0.5478 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/0.4848, allocations: 1.168 MB / 0.5489 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007941/0.4856, allocations: 0.556 MB / 0.5495 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007567/0.4932, allocations: 5.123 MB / 0.5545 GB, free: 8.266 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.4933, allocations: 49.72 kB / 0.5545 GB, free: 8.211 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005844/0.4939, allocations: 110.6 kB / 0.5546 GB, free: 8.102 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 2.925e-06/0.4939, allocations: 0 / 0.5546 GB, free: 8.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=95): time 0.0179/0.5118, allocations: 4.807 MB / 0.5593 GB, free: 3.219 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.773e-05/0.5119, allocations: 119.8 kB / 0.5594 GB, free: 3.078 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001747/0.5137, allocations: 1.474 MB / 0.5609 GB, free: 1.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001171/0.5138, allocations: 41.7 kB / 0.5609 GB, free: 1.543 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005485/0.5143, allocations: 0.8937 MB / 0.5618 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003351/0.5147, allocations: 341.6 kB / 0.5621 GB, free: 320 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004832/0.5152, allocations: 363 kB / 0.5625 GB, free: 15.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.464e-05/0.5153, allocations: 301.1 kB / 0.5628 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009414/0.5162, allocations: 0.6247 MB / 0.5634 GB, free: 15.03 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001389/0.5176, allocations: 1.331 MB / 0.5647 GB, free: 13.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002318/0.5199, allocations: 1.918 MB / 0.5665 GB, free: 11.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.247e-05/0.52, allocations: 8 kB / 0.5665 GB, free: 11.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005278/0.5253, allocations: 2.354 MB / 0.5688 GB, free: 8.828 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.873e-05/0.5253, allocations: 19.98 kB / 0.5689 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.144e-05/0.5254, allocations: 24 kB / 0.5689 GB, free: 8.785 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002424/0.5278, allocations: 381.3 kB / 0.5692 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002707/0.5305, allocations: 0.5658 MB / 0.5698 GB, free: 7.852 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008035/0.5386, allocations: 7.906 MB / 0.5775 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.5402, allocations: 82.41 kB / 0.5776 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001882/0.5404, allocations: 104 kB / 0.5777 GB, free: 15.2 MB / 430.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.0006734/0.5411, allocations: 378.2 kB / 0.5781 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002925/0.5414, allocations: 125 kB / 0.5782 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0044/0.5458, allocations: 1.528 MB / 0.5797 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/0.5458, allocations: 11.94 kB / 0.5797 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.5459, allocations: 4 kB / 0.5797 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.5459, allocations: 10.62 kB / 0.5797 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006785/0.5527, allocations: 3.004 MB / 0.5826 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/0.5527, allocations: 8 kB / 0.5826 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008491/0.5536, allocations: 218.3 kB / 0.5828 GB, free: 9.828 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002625/0.5562, allocations: 403.2 kB / 0.5832 GB, free: 9.426 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001387/0.5564, allocations: 43.98 kB / 0.5833 GB, free: 9.383 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007396/0.5638, allocations: 7.706 MB / 0.5908 GB, free: 1.094 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/0.5638, allocations: 11.94 kB / 0.5908 GB, free: 1.082 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00486/0.5687, allocations: 2.165 MB / 0.5929 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004809/0.5692, allocations: 199.5 kB / 0.5931 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002119/0.5694, allocations: 31.98 kB / 0.5931 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007085/0.5701, allocations: 24 kB / 0.5932 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.5703, allocations: 117.6 kB / 0.5933 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.337e-05/0.5704, allocations: 55.92 kB / 0.5933 GB, free: 14.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001152/0.5716, allocations: 1.009 MB / 0.5943 GB, free: 13.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5716, allocations: 0 / 0.5943 GB, free: 13.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003195/0.5748, allocations: 0.8197 MB / 0.5951 GB, free: 12.54 MB / 446.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.001821/0.5766, allocations: 0.8817 MB / 0.596 GB, free: 11.78 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003428/0.5801, allocations: 1.762 MB / 0.5977 GB, free: 10.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/0.5801, allocations: 6.656 kB / 0.5977 GB, free: 10.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001382/0.5815, allocations: 0.9876 MB / 0.5987 GB, free: 8.973 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001589/0.5831, allocations: 229.4 kB / 0.5989 GB, free: 8.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004454/0.5876, allocations: 2.867 MB / 0.6017 GB, free: 5.898 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007793/0.5884, allocations: 1.222 MB / 0.6029 GB, free: 4.668 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005679/0.589, allocations: 220.6 kB / 0.6031 GB, free: 4.457 MB / 446.1 MB Notification: Performance of SimCode: time 6.92e-07/0.589, allocations: 0 / 0.6031 GB, free: 4.457 MB / 446.1 MB Notification: Performance of Templates: time 0.06216/0.6512, allocations: 60.77 MB / 0.6624 GB, free: 7.977 MB / 0.4981 GB 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 -lv LOG_STATS > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1)