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.001305/0.001305, allocations: 115.8 kB / 16.37 MB, free: 6.012 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.001345/0.001345, allocations: 193.4 kB / 17.31 MB, free: 5.613 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09055/0.09055, allocations: 15.31 MB / 306.5 MB, free: 15.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001404, allocations: 62.39 kB / 371.8 MB, free: 50.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1454, allocations: 53.61 MB / 425.4 MB, free: 13.31 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.ClimateChange.MethanElectrosynthesis): time 0.04674/0.1923, allocations: 28.75 MB / 454.1 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02933/0.2216, allocations: 22.04 MB / 476.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002402/0.2241, allocations: 27.88 kB / 476.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001935/0.226, allocations: 0.5738 MB / 476.7 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00622/0.2323, allocations: 1.342 MB / 478.1 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01226/0.2446, allocations: 3.281 MB / 481.4 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004692/0.2493, allocations: 2.406 MB / 483.8 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002294/0.2516, allocations: 1.574 MB / 485.3 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001584/0.2532, allocations: 1.028 MB / 486.4 MB, free: 224 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001502/0.2547, allocations: 1.21 MB / 487.6 MB, free: 15 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003051/0.255, allocations: 236 kB / 487.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009763/0.2648, allocations: 2.34 MB / 490.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009487/0.2658, allocations: 0.5374 MB / 490.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001523/0.2673, allocations: 1.132 MB / 491.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01422/0.2816, allocations: 4.843 MB / 496.7 MB, free: 5.895 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.2816, allocations: 0 / 496.7 MB, free: 5.895 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.2817, allocations: 0 / 496.7 MB, free: 5.895 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000134/0.2818, allocations: 0 / 496.7 MB, free: 5.895 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.007311/0.2891, allocations: 2.673 MB / 499.3 MB, free: 3.164 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.96e-05/0.2892, allocations: 12.03 kB / 499.4 MB, free: 3.152 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002137/0.2913, allocations: 0.4936 MB / 499.8 MB, free: 2.656 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002519/0.2939, allocations: 1.189 MB / 0.4893 GB, free: 1.426 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002377/0.2941, allocations: 207.5 kB / 0.4895 GB, free: 1.211 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000353/0.2945, allocations: 191.9 kB / 0.4897 GB, free: 1.023 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004064/0.2986, allocations: 2.644 MB / 0.4923 GB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.757e-05/0.2986, allocations: 3.938 kB / 0.4923 GB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001818/0.2988, allocations: 80 kB / 0.4923 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.109e-05/0.2989, allocations: 44 kB / 0.4924 GB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004789/0.3037, allocations: 3.271 MB / 0.4956 GB, free: 10.91 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.01318/0.3169, allocations: 8.427 MB / 0.5038 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002007/0.3189, allocations: 1.318 MB / 0.5051 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009484/0.3199, allocations: 0.6341 MB / 0.5057 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2774/0.5973, allocations: 5.525 MB / 0.5111 GB, free: 74.06 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.361e-05/0.5974, allocations: 44.25 kB / 0.5111 GB, free: 74.02 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001131/0.5985, allocations: 186.3 kB / 0.5113 GB, free: 73.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 9.809e-06/0.5986, allocations: 0 / 0.5113 GB, free: 73.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.03352/0.6321, allocations: 7.158 MB / 0.5183 GB, free: 71.63 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.83e-05/0.6322, allocations: 115.1 kB / 0.5184 GB, free: 71.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003705/0.6359, allocations: 1.849 MB / 0.5202 GB, free: 70.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002597/0.6362, allocations: 45.48 kB / 0.5203 GB, free: 70.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000749/0.637, allocations: 1.007 MB / 0.5213 GB, free: 69.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005767/0.6376, allocations: 421.9 kB / 0.5217 GB, free: 69.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001084/0.6387, allocations: 418.2 kB / 0.5221 GB, free: 69.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.494e-05/0.6387, allocations: 312.4 kB / 0.5224 GB, free: 69.06 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001736/0.6405, allocations: 0.8493 MB / 0.5232 GB, free: 68.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002251/0.6427, allocations: 1.59 MB / 0.5247 GB, free: 67.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003379/0.6461, allocations: 2.34 MB / 0.527 GB, free: 65.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-05/0.6462, allocations: 9.266 kB / 0.527 GB, free: 65.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008096/0.6543, allocations: 3.293 MB / 0.5302 GB, free: 64.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.055e-05/0.6544, allocations: 15.97 kB / 0.5303 GB, free: 64.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.105e-05/0.6544, allocations: 24.81 kB / 0.5303 GB, free: 64.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004636/0.659, allocations: 1.045 MB / 0.5313 GB, free: 63.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.6607, allocations: 432.7 kB / 0.5317 GB, free: 63.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008746/0.6694, allocations: 7.464 MB / 0.539 GB, free: 56.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002437/0.6719, allocations: 98.33 kB / 0.5391 GB, free: 56.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005194/0.6725, allocations: 120 kB / 0.5392 GB, free: 56.06 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 (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.001292/0.6738, allocations: 407.6 kB / 0.5396 GB, free: 55.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007458/0.6745, allocations: 142.7 kB / 0.5397 GB, free: 55.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006703/0.6812, allocations: 2.193 MB / 0.5419 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/0.6813, allocations: 12 kB / 0.5419 GB, free: 53.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/0.6813, allocations: 4 kB / 0.5419 GB, free: 53.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.79e-05/0.6813, allocations: 7.969 kB / 0.5419 GB, free: 53.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/0.6917, allocations: 3.949 MB / 0.5458 GB, free: 49.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.6917, allocations: 4 kB / 0.5458 GB, free: 49.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007301/0.6925, allocations: 171.8 kB / 0.5459 GB, free: 49.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004206/0.6967, allocations: 0.9297 MB / 0.5468 GB, free: 48.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001531/0.6969, allocations: 47.91 kB / 0.5469 GB, free: 48.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007042/0.7039, allocations: 6.765 MB / 0.5535 GB, free: 41.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.704, allocations: 11.95 kB / 0.5535 GB, free: 41.01 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006784/0.7108, allocations: 2.904 MB / 0.5563 GB, free: 38.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006317/0.7114, allocations: 208.1 kB / 0.5565 GB, free: 37.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004678/0.7119, allocations: 29.44 kB / 0.5566 GB, free: 37.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/0.7131, allocations: 31.98 kB / 0.5566 GB, free: 37.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002966/0.7134, allocations: 112.7 kB / 0.5567 GB, free: 37.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/0.7135, allocations: 58.62 kB / 0.5568 GB, free: 37.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001439/0.715, allocations: 1.294 MB / 0.558 GB, free: 36.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.715, allocations: 7.938 kB / 0.558 GB, free: 36.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003625/0.7186, allocations: 0.9603 MB / 0.559 GB, free: 35.48 MB / 382.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.002565/0.7212, allocations: 0.9811 MB / 0.5599 GB, free: 34.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004575/0.7258, allocations: 2.504 MB / 0.5624 GB, free: 32.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/0.7258, allocations: 0 / 0.5624 GB, free: 32.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002036/0.7278, allocations: 1.233 MB / 0.5636 GB, free: 30.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/0.7302, allocations: 239.7 kB / 0.5638 GB, free: 30.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005792/0.736, allocations: 3.166 MB / 0.5669 GB, free: 27.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006892/0.7367, allocations: 1.306 MB / 0.5682 GB, free: 26.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001069/0.7377, allocations: 331.8 kB / 0.5685 GB, free: 26.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000334/0.7381, allocations: 185.9 kB / 0.5687 GB, free: 25.9 MB / 382.1 MB Notification: Performance of SimCode: time 1.103e-06/0.7381, allocations: 0 / 0.5687 GB, free: 25.9 MB / 382.1 MB Notification: Performance of Templates: time 0.04978/0.7879, allocations: 36 MB / 0.6038 GB, free: 6.586 MB / 398.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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)