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.001241/0.001241, allocations: 107.2 kB / 16.27 MB, free: 6.109 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.001095/0.001095, allocations: 190.2 kB / 17.2 MB, free: 5.719 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.341/1.341, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07894/0.07894, allocations: 15.3 MB / 306.4 MB, free: 15.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 59.91 kB / 371 MB, free: 50.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09125/0.09253, allocations: 53.62 MB / 424.6 MB, free: 14.13 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.03408/0.1267, allocations: 27.78 MB / 452.4 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02151/0.1482, allocations: 19.39 MB / 471.8 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001417/0.1497, allocations: 23.81 kB / 471.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001408/0.1511, allocations: 0.4964 MB / 472.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003456/0.1545, allocations: 1.226 MB / 473.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007537/0.1621, allocations: 2.834 MB / 476.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002937/0.1651, allocations: 2.086 MB / 478.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001534/0.1666, allocations: 1.349 MB / 479.8 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001058/0.1677, allocations: 0.9076 MB / 480.7 MB, free: 5.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001349/0.1691, allocations: 1.051 MB / 481.7 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00034/0.1694, allocations: 200 kB / 481.9 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006923/0.1763, allocations: 2.056 MB / 484 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006/0.177, allocations: 474.5 kB / 484.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001202/0.1782, allocations: 0.98 MB / 485.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009293/0.1875, allocations: 4.165 MB / 489.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1875, allocations: 0 / 489.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.358e-06/0.1876, allocations: 0 / 489.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.835e-05/0.1876, allocations: 7.938 kB / 489.6 MB, free: 13.04 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.004792/0.1924, allocations: 2.34 MB / 491.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.1924, allocations: 12.03 kB / 491.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001624/0.1941, allocations: 438 kB / 492.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001694/0.1958, allocations: 1.052 MB / 493.4 MB, free: 9.109 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.196, allocations: 183 kB / 493.6 MB, free: 8.918 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002569/0.1962, allocations: 171.8 kB / 493.8 MB, free: 8.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00338/0.1996, allocations: 2.21 MB / 496 MB, free: 6.473 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.1997, allocations: 3.938 kB / 496 MB, free: 6.469 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000172/0.1999, allocations: 72 kB / 496.1 MB, free: 6.398 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.06e-05/0.1999, allocations: 40 kB / 496.1 MB, free: 6.359 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00529/0.2052, allocations: 2.676 MB / 498.8 MB, free: 3.676 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.01709/0.2223, allocations: 7.247 MB / 0.4942 GB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002666/0.2251, allocations: 1.184 MB / 0.4953 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001223/0.2263, allocations: 0.5495 MB / 0.4959 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01124/0.2376, allocations: 5.119 MB / 0.5009 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.816e-05/0.2377, allocations: 39.12 kB / 0.5009 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008488/0.2385, allocations: 118.5 kB / 0.501 GB, free: 4.535 MB / 382.1 MB Notification: Performance of pre-optimization done (n=71): time 4.549e-06/0.2385, allocations: 0 / 0.501 GB, free: 4.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=95): time 0.2216/0.4601, allocations: 4.801 MB / 0.5057 GB, free: 78.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.4602, allocations: 117.9 kB / 0.5058 GB, free: 78.17 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00189/0.4621, allocations: 1.471 MB / 0.5072 GB, free: 78.03 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001582/0.4623, allocations: 43.83 kB / 0.5073 GB, free: 78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005382/0.4628, allocations: 0.894 MB / 0.5082 GB, free: 77.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003054/0.4632, allocations: 344.8 kB / 0.5085 GB, free: 77.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005336/0.4637, allocations: 358.4 kB / 0.5088 GB, free: 77.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.509e-05/0.4637, allocations: 307.7 kB / 0.5091 GB, free: 77.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009684/0.4647, allocations: 0.6201 MB / 0.5097 GB, free: 76.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/0.4659, allocations: 1.33 MB / 0.511 GB, free: 75.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001902/0.4678, allocations: 1.914 MB / 0.5129 GB, free: 74.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.454e-05/0.4678, allocations: 7 kB / 0.5129 GB, free: 74.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005441/0.4733, allocations: 2.372 MB / 0.5152 GB, free: 73.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.4733, allocations: 15.03 kB / 0.5152 GB, free: 73.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.969e-05/0.4734, allocations: 24.17 kB / 0.5153 GB, free: 73.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002548/0.4759, allocations: 375.5 kB / 0.5156 GB, free: 73.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002744/0.4787, allocations: 0.5638 MB / 0.5162 GB, free: 73.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00706/0.4858, allocations: 7.905 MB / 0.5239 GB, free: 65.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/0.4873, allocations: 90.34 kB / 0.524 GB, free: 65.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001994/0.4875, allocations: 106.7 kB / 0.5241 GB, free: 65.7 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.0005985/0.4881, allocations: 374.7 kB / 0.5244 GB, free: 65.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002826/0.4884, allocations: 124.2 kB / 0.5245 GB, free: 65.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004392/0.4928, allocations: 1.533 MB / 0.526 GB, free: 64.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.4928, allocations: 15.28 kB / 0.5261 GB, free: 64.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.4928, allocations: 2.688 kB / 0.5261 GB, free: 64.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.4929, allocations: 3.844 kB / 0.5261 GB, free: 64.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00595/0.4988, allocations: 3.022 MB / 0.529 GB, free: 63.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-05/0.4989, allocations: 7.906 kB / 0.529 GB, free: 63.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008031/0.4997, allocations: 214.2 kB / 0.5292 GB, free: 63.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00245/0.5021, allocations: 412.1 kB / 0.5296 GB, free: 63.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.5023, allocations: 39.56 kB / 0.5297 GB, free: 63.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005923/0.5082, allocations: 7.715 MB / 0.5372 GB, free: 55.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.5082, allocations: 11.44 kB / 0.5372 GB, free: 55.69 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004233/0.5125, allocations: 2.156 MB / 0.5393 GB, free: 54.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003974/0.5129, allocations: 199.6 kB / 0.5395 GB, free: 54.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.5131, allocations: 24.38 kB / 0.5395 GB, free: 54.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006984/0.5138, allocations: 29.53 kB / 0.5396 GB, free: 54.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001872/0.514, allocations: 109.7 kB / 0.5397 GB, free: 54.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.297e-05/0.5141, allocations: 53.3 kB / 0.5397 GB, free: 54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009257/0.515, allocations: 1.021 MB / 0.5407 GB, free: 53.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.515, allocations: 0 / 0.5407 GB, free: 53.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002722/0.5178, allocations: 0.8094 MB / 0.5415 GB, free: 53.28 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.001484/0.5193, allocations: 0.8811 MB / 0.5424 GB, free: 52.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003333/0.5226, allocations: 1.819 MB / 0.5441 GB, free: 50.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.5226, allocations: 4 kB / 0.5441 GB, free: 50.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001095/0.5237, allocations: 0.9988 MB / 0.5451 GB, free: 49.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001519/0.5253, allocations: 233.6 kB / 0.5453 GB, free: 49.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003746/0.529, allocations: 2.903 MB / 0.5482 GB, free: 46.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005463/0.5296, allocations: 1.22 MB / 0.5494 GB, free: 45.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004938/0.5301, allocations: 220.6 kB / 0.5496 GB, free: 45.27 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5301, allocations: 4 kB / 0.5496 GB, free: 45.27 MB / 382.1 MB Notification: Performance of Templates: time 0.05125/0.5814, allocations: 60.6 MB / 0.6087 GB, free: 1.406 MB / 398.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 -lv LOG_STATS > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1)