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.001441/0.001441, allocations: 107.5 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.001557/0.001557, allocations: 187 kB / 17.34 MB, free: 5.766 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.332/1.332, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07561/0.07561, allocations: 15.31 MB / 306.5 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 64.12 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09914/0.1004, allocations: 53.61 MB / 479.5 MB, free: 5.781 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.ClimateChange.MethanElectrosynthesis): time 0.03812/0.1385, allocations: 28.95 MB / 0.4965 GB, free: 8.898 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2278/0.3663, allocations: 22.04 MB / 0.518 GB, free: 17.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001358/0.3677, allocations: 22.84 kB / 0.518 GB, free: 17.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001528/0.3693, allocations: 0.5809 MB / 0.5186 GB, free: 17.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003555/0.3729, allocations: 1.342 MB / 0.5199 GB, free: 16.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008808/0.3817, allocations: 3.281 MB / 0.5231 GB, free: 15.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004225/0.3859, allocations: 2.394 MB / 0.5255 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002058/0.388, allocations: 1.571 MB / 0.527 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001439/0.3895, allocations: 1.033 MB / 0.528 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00153/0.391, allocations: 1.209 MB / 0.5292 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000365/0.3914, allocations: 235 kB / 0.5294 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00795/0.3993, allocations: 2.333 MB / 0.5317 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006706/0.4, allocations: 0.5388 MB / 0.5322 GB, free: 11.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001323/0.4014, allocations: 1.131 MB / 0.5333 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01039/0.4118, allocations: 4.857 MB / 0.5381 GB, free: 8.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.4118, allocations: 1.375 kB / 0.5381 GB, free: 8.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4118, allocations: 0 / 0.5381 GB, free: 8.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.634e-05/0.4119, allocations: 2.688 kB / 0.5381 GB, free: 8.094 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: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.004273/0.4161, allocations: 2.671 MB / 0.5407 GB, free: 6.254 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.4162, allocations: 10.97 kB / 0.5407 GB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001755/0.4179, allocations: 0.4952 MB / 0.5412 GB, free: 6.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001563/0.4195, allocations: 1.183 MB / 0.5423 GB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.4197, allocations: 201 kB / 0.5425 GB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002683/0.4199, allocations: 195 kB / 0.5427 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003145/0.4231, allocations: 2.645 MB / 0.5453 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.4231, allocations: 7.938 kB / 0.5453 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001616/0.4233, allocations: 76 kB / 0.5454 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.755e-05/0.4233, allocations: 48 kB / 0.5454 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003683/0.427, allocations: 3.279 MB / 0.5486 GB, free: 15.54 MB / 398.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.01247/0.4395, allocations: 8.427 MB / 0.5568 GB, free: 6.852 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001907/0.4414, allocations: 1.326 MB / 0.5581 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009611/0.4424, allocations: 0.6302 MB / 0.5588 GB, free: 4.844 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008283/0.4507, allocations: 5.546 MB / 0.5642 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.4508, allocations: 43.22 kB / 0.5642 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008711/0.4517, allocations: 188.9 kB / 0.5644 GB, free: 14.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=81): time 3.015e-06/0.4517, allocations: 0 / 0.5644 GB, free: 14.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=115): time 0.02728/0.4789, allocations: 7.168 MB / 0.5714 GB, free: 7.336 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.169e-05/0.479, allocations: 115.8 kB / 0.5715 GB, free: 7.199 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002171/0.4812, allocations: 1.853 MB / 0.5733 GB, free: 5.328 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001635/0.4814, allocations: 45.7 kB / 0.5734 GB, free: 5.277 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007454/0.4822, allocations: 1.009 MB / 0.5743 GB, free: 4.254 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004929/0.4827, allocations: 414.2 kB / 0.5747 GB, free: 3.844 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006761/0.4833, allocations: 419 kB / 0.5751 GB, free: 3.426 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.4834, allocations: 305.1 kB / 0.5754 GB, free: 3.125 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001291/0.4847, allocations: 0.8551 MB / 0.5763 GB, free: 2.266 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001798/0.4866, allocations: 1.59 MB / 0.5778 GB, free: 356 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002955/0.4895, allocations: 2.334 MB / 0.5801 GB, free: 13.73 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/0.4895, allocations: 10.66 kB / 0.5801 GB, free: 13.72 MB / 430.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008168/0.4977, allocations: 3.297 MB / 0.5833 GB, free: 10.43 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.331e-05/0.4978, allocations: 18.66 kB / 0.5833 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.192e-05/0.4978, allocations: 24 kB / 0.5834 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00492/0.5027, allocations: 1.031 MB / 0.5844 GB, free: 9.371 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001506/0.5043, allocations: 435.3 kB / 0.5848 GB, free: 8.945 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00984/0.5141, allocations: 7.475 MB / 0.5921 GB, free: 1.059 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001851/0.516, allocations: 94.36 kB / 0.5922 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002155/0.5162, allocations: 116 kB / 0.5923 GB, free: 0.8555 MB / 430.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.0007527/0.517, allocations: 407.7 kB / 0.5927 GB, free: 460 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003667/0.5174, allocations: 146.1 kB / 0.5928 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006814/0.5242, allocations: 2.196 MB / 0.595 GB, free: 14.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-05/0.5242, allocations: 12 kB / 0.595 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.5242, allocations: 11.92 kB / 0.595 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/0.5243, allocations: 4.094 kB / 0.595 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009359/0.5336, allocations: 3.937 MB / 0.5988 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.5337, allocations: 0 / 0.5988 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007462/0.5344, allocations: 175.7 kB / 0.599 GB, free: 9.922 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00436/0.5388, allocations: 0.9206 MB / 0.5999 GB, free: 9.008 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.5389, allocations: 50.59 kB / 0.5999 GB, free: 8.961 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008166/0.5471, allocations: 6.775 MB / 0.6066 GB, free: 1.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.5471, allocations: 0 / 0.6066 GB, free: 1.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007297/0.5544, allocations: 2.904 MB / 0.6094 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004027/0.5548, allocations: 210 kB / 0.6096 GB, free: 14.61 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002213/0.5551, allocations: 24 kB / 0.6096 GB, free: 14.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009081/0.556, allocations: 32.27 kB / 0.6097 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002699/0.5563, allocations: 119.4 kB / 0.6098 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.5564, allocations: 51.97 kB / 0.6098 GB, free: 14.39 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001455/0.5578, allocations: 1.302 MB / 0.6111 GB, free: 13.08 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5578, allocations: 0 / 0.6111 GB, free: 13.08 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003052/0.5609, allocations: 0.9603 MB / 0.612 GB, free: 12.12 MB / 462.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.001901/0.5628, allocations: 0.9939 MB / 0.613 GB, free: 11.16 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004541/0.5674, allocations: 2.521 MB / 0.6155 GB, free: 8.598 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.5674, allocations: 0 / 0.6155 GB, free: 8.598 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002004/0.5694, allocations: 1.229 MB / 0.6167 GB, free: 7.309 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.5708, allocations: 230.1 kB / 0.6169 GB, free: 7.105 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005222/0.576, allocations: 3.212 MB / 0.62 GB, free: 3.945 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008451/0.5769, allocations: 1.304 MB / 0.6213 GB, free: 2.633 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005061/0.5774, allocations: 227.7 kB / 0.6215 GB, free: 2.414 MB / 462.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5774, allocations: 0 / 0.6215 GB, free: 2.414 MB / 462.1 MB Notification: Performance of Templates: time 0.06898/0.6464, allocations: 65.01 MB / 0.685 GB, free: 1.641 MB / 0.5137 GB 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)