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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.001184/0.001184, allocations: 100.8 kB / 15.06 MB, free: 1.094 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.001419/0.001419, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2231/0.2231, allocations: 15.27 MB / 306.2 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003594/0.0003594, allocations: 15.94 kB / 371.4 MB, free: 4.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3328, allocations: 54.62 MB / 426 MB, free: 40.09 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011: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.0-master/package.mo:3011:6-3011: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.008682/0.3415, allocations: 8.735 MB / 434.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0196/0.3611, allocations: 18.81 MB / 453.5 MB, free: 23.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001985/0.3632, allocations: 41.56 kB / 453.6 MB, free: 23.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001558/0.3647, allocations: 0.5372 MB / 454.1 MB, free: 23.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004354/0.3691, allocations: 1.535 MB / 455.6 MB, free: 22.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009362/0.3785, allocations: 2.928 MB / 458.6 MB, free: 20.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003244/0.3818, allocations: 1.617 MB / 460.2 MB, free: 19.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001523/0.3833, allocations: 1.201 MB / 461.4 MB, free: 19.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001133/0.3844, allocations: 0.8072 MB / 462.2 MB, free: 18.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001132/0.3856, allocations: 1.034 MB / 463.2 MB, free: 18.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002029/0.3858, allocations: 122.5 kB / 463.4 MB, free: 18.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009115/0.3949, allocations: 2.576 MB / 465.9 MB, free: 17.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007509/0.3957, allocations: 413.7 kB / 466.3 MB, free: 17.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009073/0.3966, allocations: 400.2 kB / 466.7 MB, free: 17.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007635/0.4043, allocations: 3.01 MB / 469.7 MB, free: 16.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.4043, allocations: 0 / 469.7 MB, free: 16.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.4043, allocations: 0 / 469.7 MB, free: 16.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.48e-05/0.4044, allocations: 0 / 469.7 MB, free: 16.48 MB / 350.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.006113/0.4105, allocations: 2.275 MB / 472 MB, free: 15.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.4106, allocations: 9.188 kB / 472 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002106/0.4127, allocations: 0.4991 MB / 472.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002181/0.4149, allocations: 1.114 MB / 473.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001836/0.4151, allocations: 201.6 kB / 473.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003178/0.4154, allocations: 185.6 kB / 474 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004748/0.4202, allocations: 2.631 MB / 476.6 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.838e-05/0.4202, allocations: 5.188 kB / 476.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001871/0.4204, allocations: 80.72 kB / 476.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.682e-05/0.4205, allocations: 47.47 kB / 476.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005393/0.4259, allocations: 3.253 MB / 480 MB, free: 11.89 MB / 350.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.01809/0.444, allocations: 8.478 MB / 488.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/0.446, allocations: 1.315 MB / 489.8 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007713/0.4538, allocations: 5.468 MB / 495.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/0.4539, allocations: 47.17 kB / 495.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001007/0.4549, allocations: 178.4 kB / 495.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=81): time 2.885e-06/0.4549, allocations: 7.938 kB / 495.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=115): time 0.02754/0.4824, allocations: 7.038 MB / 0.4908 GB, free: 8.375 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.392e-05/0.4826, allocations: 119.8 kB / 0.4909 GB, free: 8.234 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002366/0.485, allocations: 1.845 MB / 0.4927 GB, free: 6.371 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001933/0.4852, allocations: 45.7 kB / 0.4927 GB, free: 6.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006974/0.4859, allocations: 1.006 MB / 0.4937 GB, free: 5.297 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003881/0.4863, allocations: 414.2 kB / 0.4941 GB, free: 4.887 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.4864, allocations: 40 kB / 0.4941 GB, free: 4.848 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.4866, allocations: 385.9 kB / 0.4945 GB, free: 4.465 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/0.4879, allocations: 0.8317 MB / 0.4953 GB, free: 3.629 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001803/0.4897, allocations: 1.565 MB / 0.4969 GB, free: 1.719 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/0.4913, allocations: 1.049 MB / 0.4979 GB, free: 0.668 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/0.4913, allocations: 4 kB / 0.4979 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007826/0.4991, allocations: 3.248 MB / 0.5011 GB, free: 13.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.535e-05/0.4992, allocations: 16 kB / 0.5011 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.82e-05/0.4993, allocations: 24 kB / 0.5011 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004963/0.5043, allocations: 1.013 MB / 0.5021 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001743/0.506, allocations: 435.3 kB / 0.5025 GB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009933/0.516, allocations: 6.975 MB / 0.5093 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002429/0.5185, allocations: 111.7 kB / 0.5094 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002851/0.5188, allocations: 120.2 kB / 0.5095 GB, free: 4.266 MB / 382.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 3} * Non-linear torn systems: 2 {2 15,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009032/0.5197, allocations: 401.6 kB / 0.5099 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000362/0.52, allocations: 150.1 kB / 0.5101 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006375/0.5264, allocations: 2.151 MB / 0.5122 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.5265, allocations: 12 kB / 0.5122 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.5265, allocations: 7.984 kB / 0.5122 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.827e-05/0.5265, allocations: 3.984 kB / 0.5122 GB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009671/0.5362, allocations: 3.846 MB / 0.5159 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/0.5363, allocations: 3.984 kB / 0.5159 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007576/0.537, allocations: 171.8 kB / 0.5161 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004622/0.5417, allocations: 0.917 MB / 0.517 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001775/0.5419, allocations: 43.97 kB / 0.517 GB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008507/0.5504, allocations: 6.335 MB / 0.5232 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.5504, allocations: 0 / 0.5232 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007578/0.558, allocations: 2.931 MB / 0.5261 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009276/0.559, allocations: 239.2 kB / 0.5263 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006463/0.5597, allocations: 24.12 kB / 0.5263 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/0.5611, allocations: 55.91 kB / 0.5264 GB, free: 2.305 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003641/0.5615, allocations: 116.7 kB / 0.5265 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/0.5616, allocations: 47.97 kB / 0.5266 GB, free: 2.141 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001998/0.5636, allocations: 1.287 MB / 0.5278 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5637, allocations: 0 / 0.5278 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004831/0.5685, allocations: 0.9447 MB / 0.5287 GB, free: 15.9 MB / 414.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 2 {1 17,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00378/0.5723, allocations: 0.9724 MB / 0.5297 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005484/0.5778, allocations: 2.465 MB / 0.5321 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.5778, allocations: 0.875 kB / 0.5321 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002364/0.5802, allocations: 1.213 MB / 0.5333 GB, free: 11.13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/0.582, allocations: 203.3 kB / 0.5335 GB, free: 10.94 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007746/0.5898, allocations: 3.893 MB / 0.5373 GB, free: 6.988 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001332/0.5911, allocations: 1.349 MB / 0.5386 GB, free: 5.609 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001663/0.5928, allocations: 338.5 kB / 0.5389 GB, free: 5.285 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005208/0.5933, allocations: 187.2 kB / 0.5391 GB, free: 5.102 MB / 414.1 MB Notification: Performance of SimCode: time 1.452e-06/0.5934, allocations: 0 / 0.5391 GB, free: 5.102 MB / 414.1 MB Notification: Performance of Templates: time 0.05753/0.6509, allocations: 32.69 MB / 0.571 GB, free: 4.531 MB / 446.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: