Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.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.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008195/0.0008197, allocations: 92.16 kB / 16.02 MB, free: 76 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.0009616/0.0009617, allocations: 182.6 kB / 16.92 MB, free: 6.926 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.418/1.418, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1999/0.1999, allocations: 15.27 MB / 307.4 MB, free: 15.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003278/0.0003279, allocations: 8.234 kB / 372.7 MB, free: 3.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2711, allocations: 54.63 MB / 427.4 MB, free: 40.98 MB / 350.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.ClimateChange.MethanElectrosynthesis): time 0.02856/0.2997, allocations: 29.52 MB / 456.9 MB, free: 29.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01938/0.3191, allocations: 21.81 MB / 478.7 MB, free: 14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001506/0.3206, allocations: 41.78 kB / 478.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001317/0.3219, allocations: 0.5161 MB / 479.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003408/0.3253, allocations: 1.219 MB / 480.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007864/0.3332, allocations: 2.865 MB / 483.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002701/0.3359, allocations: 2.323 MB / 485.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001256/0.3372, allocations: 1.289 MB / 487 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008633/0.3381, allocations: 0.908 MB / 487.9 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001061/0.3392, allocations: 1.091 MB / 489 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000198/0.3394, allocations: 120 kB / 489.1 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007368/0.3468, allocations: 2.243 MB / 491.3 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005946/0.3474, allocations: 433.9 kB / 491.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001146/0.3485, allocations: 1.028 MB / 492.8 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005778/0.3543, allocations: 3.532 MB / 496.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3543, allocations: 4 kB / 496.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3544, allocations: 0 / 496.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.638e-05/0.3544, allocations: 0 / 496.3 MB, free: 15.66 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: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.005077/0.3595, allocations: 2.272 MB / 498.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.3596, allocations: 8.031 kB / 498.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00197/0.3615, allocations: 0.5001 MB / 499.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001902/0.3635, allocations: 1.143 MB / 0.4885 GB, free: 12.19 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.3636, allocations: 204.9 kB / 0.4887 GB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003319/0.364, allocations: 191.9 kB / 0.4889 GB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004307/0.3683, allocations: 2.646 MB / 0.4915 GB, free: 9.562 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.078e-05/0.3684, allocations: 3.938 kB / 0.4915 GB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001927/0.3686, allocations: 76 kB / 0.4915 GB, free: 9.484 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.739e-05/0.3686, allocations: 48 kB / 0.4916 GB, free: 9.438 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005082/0.3737, allocations: 3.272 MB / 0.4948 GB, free: 6.625 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.01352/0.3872, allocations: 8.453 MB / 0.503 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/0.3896, allocations: 1.329 MB / 0.5043 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001113/0.3907, allocations: 0.638 MB / 0.505 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009018/0.3997, allocations: 5.48 MB / 0.5103 GB, free: 5.902 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.3998, allocations: 47.16 kB / 0.5104 GB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008076/0.4006, allocations: 174.4 kB / 0.5105 GB, free: 5.672 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 4.439e-06/0.4006, allocations: 0 / 0.5105 GB, free: 5.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.02877/0.4294, allocations: 7.063 MB / 0.5174 GB, free: 14.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.329e-05/0.4295, allocations: 119.8 kB / 0.5175 GB, free: 14.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002532/0.4321, allocations: 1.849 MB / 0.5193 GB, free: 12.47 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001678/0.4322, allocations: 45.7 kB / 0.5194 GB, free: 12.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007341/0.433, allocations: 1.01 MB / 0.5204 GB, free: 11.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003864/0.4334, allocations: 418.2 kB / 0.5208 GB, free: 10.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002352/0.4336, allocations: 161.7 kB / 0.5209 GB, free: 10.81 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.738e-05/0.4337, allocations: 301.1 kB / 0.5212 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/0.4351, allocations: 0.8512 MB / 0.522 GB, free: 9.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001834/0.437, allocations: 1.577 MB / 0.5236 GB, free: 7.734 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003035/0.44, allocations: 2.313 MB / 0.5258 GB, free: 5.086 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.298e-05/0.44, allocations: 8 kB / 0.5258 GB, free: 5.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008065/0.4481, allocations: 3.256 MB / 0.529 GB, free: 1.797 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.407e-05/0.4482, allocations: 16 kB / 0.529 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.173e-05/0.4482, allocations: 24 kB / 0.5291 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005139/0.4533, allocations: 1.007 MB / 0.53 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/0.4549, allocations: 435.3 kB / 0.5305 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/0.465, allocations: 6.9 MB / 0.5372 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001794/0.4669, allocations: 123.5 kB / 0.5373 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002318/0.4671, allocations: 120 kB / 0.5374 GB, free: 8.746 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008274/0.468, allocations: 401.1 kB / 0.5378 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002832/0.4682, allocations: 146.2 kB / 0.538 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006795/0.475, allocations: 2.153 MB / 0.5401 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.52e-05/0.4751, allocations: 12 kB / 0.5401 GB, free: 6.012 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.4751, allocations: 7.938 kB / 0.5401 GB, free: 6.004 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/0.4751, allocations: 3.984 kB / 0.5401 GB, free: 6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009467/0.4846, allocations: 3.854 MB / 0.5438 GB, free: 2.047 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.4846, allocations: 7.875 kB / 0.5438 GB, free: 2.039 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007859/0.4854, allocations: 175.8 kB / 0.544 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004703/0.4901, allocations: 0.9209 MB / 0.5449 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001436/0.4903, allocations: 39.97 kB / 0.545 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008297/0.4986, allocations: 6.266 MB / 0.5511 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.4986, allocations: 4.031 kB / 0.5511 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007453/0.5061, allocations: 2.85 MB / 0.5539 GB, free: 7.297 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005161/0.5067, allocations: 239.2 kB / 0.5541 GB, free: 7.043 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002195/0.5069, allocations: 24 kB / 0.5541 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009602/0.5078, allocations: 47.83 kB / 0.5542 GB, free: 6.973 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002914/0.5082, allocations: 116.8 kB / 0.5543 GB, free: 6.859 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.5083, allocations: 47.97 kB / 0.5543 GB, free: 6.812 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00157/0.5099, allocations: 1.302 MB / 0.5556 GB, free: 5.508 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5099, allocations: 288 / 0.5556 GB, free: 5.508 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003139/0.513, allocations: 0.9564 MB / 0.5565 GB, free: 4.551 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (90): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001906/0.5149, allocations: 0.9778 MB / 0.5575 GB, free: 3.562 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004542/0.5195, allocations: 2.477 MB / 0.5599 GB, free: 1.027 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.5195, allocations: 0 / 0.5599 GB, free: 1.027 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00209/0.5216, allocations: 1.225 MB / 0.5611 GB, free: 15.74 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/0.5234, allocations: 225.1 kB / 0.5613 GB, free: 15.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006012/0.5295, allocations: 4.139 MB / 0.5653 GB, free: 11.32 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009652/0.5305, allocations: 1.307 MB / 0.5666 GB, free: 9.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006256/0.5311, allocations: 223.3 kB / 0.5668 GB, free: 9.762 MB / 446.1 MB Notification: Performance of SimCode: time 2.665e-06/0.5311, allocations: 0 / 0.5668 GB, free: 9.762 MB / 446.1 MB Notification: Performance of Templates: time 0.2401/0.7712, allocations: 64.22 MB / 0.6296 GB, free: 94.27 MB / 446.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.makefile (rm -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.sim & ./Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)