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.007353/0.007353, allocations: 105 kB / 15.74 MB, free: 6.035 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.001191/0.001192, allocations: 196 kB / 16.67 MB, free: 5.969 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.53/1.53, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.267/0.267, allocations: 15.33 MB / 305.9 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 67.89 kB / 425.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3107, allocations: 53.6 MB / 478.8 MB, free: 26.23 MB / 366.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.06519/0.376, allocations: 28.97 MB / 0.4959 GB, free: 5.828 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04886/0.4249, allocations: 22.03 MB / 0.5174 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003483/0.4284, allocations: 19.94 kB / 0.5174 GB, free: 15.69 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003151/0.4316, allocations: 0.5816 MB / 0.518 GB, free: 15.1 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007055/0.4387, allocations: 1.338 MB / 0.5193 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0158/0.4546, allocations: 3.281 MB / 0.5225 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005517/0.4602, allocations: 2.398 MB / 0.5248 GB, free: 8.047 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002668/0.4629, allocations: 1.578 MB / 0.5264 GB, free: 6.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001615/0.4645, allocations: 1.04 MB / 0.5274 GB, free: 5.375 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001599/0.4661, allocations: 1.199 MB / 0.5286 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003248/0.4665, allocations: 232 kB / 0.5288 GB, free: 3.945 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009378/0.4759, allocations: 2.34 MB / 0.5311 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001169/0.4771, allocations: 0.5335 MB / 0.5316 GB, free: 1.066 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0019/0.479, allocations: 1.132 MB / 0.5327 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01494/0.494, allocations: 4.858 MB / 0.5374 GB, free: 11.05 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.494, allocations: 0 / 0.5374 GB, free: 11.05 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.494, allocations: 0 / 0.5374 GB, free: 11.05 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001357/0.4942, allocations: 0 / 0.5374 GB, free: 11.05 MB / 414.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.00782/0.502, allocations: 2.673 MB / 0.5401 GB, free: 8.324 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.5021, allocations: 8.031 kB / 0.5401 GB, free: 8.316 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00223/0.5043, allocations: 0.4989 MB / 0.5406 GB, free: 7.816 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002359/0.5067, allocations: 1.177 MB / 0.5417 GB, free: 6.594 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002219/0.5069, allocations: 207.5 kB / 0.5419 GB, free: 6.379 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003104/0.5072, allocations: 195.8 kB / 0.5421 GB, free: 6.188 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004557/0.5118, allocations: 2.648 MB / 0.5447 GB, free: 3.477 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.319e-05/0.5119, allocations: 3.938 kB / 0.5447 GB, free: 3.473 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001983/0.5121, allocations: 79.94 kB / 0.5448 GB, free: 3.395 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-05/0.5121, allocations: 48 kB / 0.5448 GB, free: 3.348 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005052/0.5172, allocations: 3.271 MB / 0.548 GB, free: 72 kB / 414.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.01375/0.531, allocations: 8.45 MB / 0.5562 GB, free: 7.328 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002098/0.5331, allocations: 1.313 MB / 0.5575 GB, free: 5.957 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001023/0.5341, allocations: 0.6378 MB / 0.5581 GB, free: 5.309 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009171/0.5433, allocations: 5.523 MB / 0.5635 GB, free: 15.26 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.5434, allocations: 51.16 kB / 0.5636 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009439/0.5444, allocations: 182.3 kB / 0.5638 GB, free: 15.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=81): time 3.537e-06/0.5444, allocations: 0 / 0.5638 GB, free: 15.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=115): time 0.02747/0.5719, allocations: 7.176 MB / 0.5708 GB, free: 7.715 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.036e-05/0.572, allocations: 119.8 kB / 0.5709 GB, free: 7.574 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00228/0.5743, allocations: 1.845 MB / 0.5727 GB, free: 5.711 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001849/0.5745, allocations: 45.77 kB / 0.5727 GB, free: 5.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006572/0.5751, allocations: 1.014 MB / 0.5737 GB, free: 4.629 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003826/0.5755, allocations: 414.2 kB / 0.5741 GB, free: 4.219 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005948/0.5761, allocations: 415.1 kB / 0.5745 GB, free: 3.805 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.5762, allocations: 305.1 kB / 0.5748 GB, free: 3.504 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.5775, allocations: 0.8512 MB / 0.5756 GB, free: 2.648 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001835/0.5793, allocations: 1.581 MB / 0.5772 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003013/0.5824, allocations: 2.344 MB / 0.5795 GB, free: 14.04 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.5824, allocations: 4 kB / 0.5795 GB, free: 14.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007915/0.5903, allocations: 3.303 MB / 0.5827 GB, free: 10.71 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.239e-05/0.5904, allocations: 19.98 kB / 0.5827 GB, free: 10.69 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.024e-05/0.5904, allocations: 24 kB / 0.5827 GB, free: 10.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004927/0.5954, allocations: 1.035 MB / 0.5838 GB, free: 9.613 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001687/0.5971, allocations: 431.3 kB / 0.5842 GB, free: 9.191 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009976/0.6071, allocations: 7.481 MB / 0.5915 GB, free: 1.266 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001926/0.6091, allocations: 103.7 kB / 0.5916 GB, free: 1.164 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002302/0.6093, allocations: 120 kB / 0.5917 GB, free: 1.047 MB / 462.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.0007662/0.6101, allocations: 401.1 kB / 0.5921 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003646/0.6104, allocations: 146.2 kB / 0.5922 GB, free: 0.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006328/0.6168, allocations: 2.188 MB / 0.5943 GB, free: 14.28 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/0.6168, allocations: 15.94 kB / 0.5944 GB, free: 14.26 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.6168, allocations: 4 kB / 0.5944 GB, free: 14.26 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-05/0.6169, allocations: 7.969 kB / 0.5944 GB, free: 14.25 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00951/0.6264, allocations: 3.936 MB / 0.5982 GB, free: 10.22 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/0.6264, allocations: 4 kB / 0.5982 GB, free: 10.22 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007245/0.6272, allocations: 175.9 kB / 0.5984 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00426/0.6314, allocations: 0.9325 MB / 0.5993 GB, free: 9.098 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001359/0.6316, allocations: 39.97 kB / 0.5993 GB, free: 9.059 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008313/0.6399, allocations: 6.769 MB / 0.6059 GB, free: 1.848 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.64, allocations: 288 / 0.6059 GB, free: 1.848 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3023/0.9423, allocations: 2.901 MB / 0.6088 GB, free: 115.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000632/0.9429, allocations: 206.1 kB / 0.609 GB, free: 115.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002267/0.9432, allocations: 27.52 kB / 0.609 GB, free: 115.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008793/0.9441, allocations: 32.3 kB / 0.609 GB, free: 115.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004055/0.9445, allocations: 113.8 kB / 0.6091 GB, free: 115.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/0.9446, allocations: 55.14 kB / 0.6092 GB, free: 115.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001874/0.9465, allocations: 1.299 MB / 0.6105 GB, free: 115.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9465, allocations: 0 / 0.6105 GB, free: 115.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005166/0.9517, allocations: 0.9585 MB / 0.6114 GB, free: 115.2 MB / 478.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.002759/0.9545, allocations: 0.985 MB / 0.6124 GB, free: 115.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005408/0.9599, allocations: 2.514 MB / 0.6148 GB, free: 114 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.9599, allocations: 2.656 kB / 0.6148 GB, free: 114 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002454/0.9624, allocations: 1.229 MB / 0.616 GB, free: 113.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001655/0.9641, allocations: 240.5 kB / 0.6162 GB, free: 113.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005588/0.9697, allocations: 3.159 MB / 0.6193 GB, free: 111.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008086/0.9705, allocations: 1.312 MB / 0.6206 GB, free: 111 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001105/0.9716, allocations: 330 kB / 0.6209 GB, free: 111 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003533/0.972, allocations: 190.4 kB / 0.6211 GB, free: 110.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.052e-06/0.972, allocations: 0 / 0.6211 GB, free: 110.9 MB / 478.1 MB Notification: Performance of Templates: time 0.05037/1.022, allocations: 37.06 MB / 0.6573 GB, free: 88.68 MB / 478.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)