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.009787/0.009788, allocations: 95.83 kB / 15.73 MB, free: 6.039 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.002109/0.002109, allocations: 199.6 kB / 16.68 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2796/0.2796, allocations: 15.32 MB / 305.9 MB, free: 15.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 59.91 kB / 425.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4065/0.408, allocations: 53.61 MB / 478.8 MB, free: 25.98 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.0451/0.4532, allocations: 29.06 MB / 0.496 GB, free: 5.746 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03119/0.4844, allocations: 22.04 MB / 0.5175 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003378/0.4878, allocations: 19.94 kB / 0.5175 GB, free: 15.6 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002113/0.4899, allocations: 0.5816 MB / 0.5181 GB, free: 15.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005971/0.4959, allocations: 1.338 MB / 0.5194 GB, free: 13.67 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01213/0.5081, allocations: 3.277 MB / 0.5226 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00529/0.5134, allocations: 2.406 MB / 0.5249 GB, free: 7.957 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002078/0.5155, allocations: 1.574 MB / 0.5265 GB, free: 6.332 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001444/0.517, allocations: 1.032 MB / 0.5275 GB, free: 5.297 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001486/0.5185, allocations: 1.203 MB / 0.5287 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003159/0.5188, allocations: 232 kB / 0.5289 GB, free: 3.863 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009942/0.5287, allocations: 2.34 MB / 0.5312 GB, free: 1.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007513/0.5295, allocations: 0.5374 MB / 0.5317 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001609/0.5311, allocations: 1.132 MB / 0.5328 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01586/0.547, allocations: 4.871 MB / 0.5375 GB, free: 10.95 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.406e-06/0.5471, allocations: 0 / 0.5375 GB, free: 10.95 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.5471, allocations: 0 / 0.5375 GB, free: 10.95 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.987e-05/0.5472, allocations: 4 kB / 0.5376 GB, free: 10.95 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.006096/0.5533, allocations: 2.742 MB / 0.5402 GB, free: 8.145 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.918e-05/0.5534, allocations: 12.03 kB / 0.5402 GB, free: 8.133 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00199/0.5554, allocations: 0.5078 MB / 0.5407 GB, free: 7.625 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002297/0.5577, allocations: 1.19 MB / 0.5419 GB, free: 6.391 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002344/0.5579, allocations: 207.5 kB / 0.5421 GB, free: 6.176 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003771/0.5583, allocations: 187.9 kB / 0.5423 GB, free: 5.992 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004286/0.5626, allocations: 2.647 MB / 0.5449 GB, free: 3.281 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.994e-05/0.5627, allocations: 7.938 kB / 0.5449 GB, free: 3.273 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001945/0.5629, allocations: 76 kB / 0.5449 GB, free: 3.199 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.826e-05/0.5629, allocations: 48 kB / 0.545 GB, free: 3.152 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004635/0.5676, allocations: 3.268 MB / 0.5482 GB, free: 15.88 MB / 430.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.01392/0.5815, allocations: 8.464 MB / 0.5564 GB, free: 7.125 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002161/0.5837, allocations: 1.325 MB / 0.5577 GB, free: 5.742 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.5847, allocations: 0.6339 MB / 0.5584 GB, free: 5.098 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009083/0.5938, allocations: 5.539 MB / 0.5638 GB, free: 15.04 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.011e-05/0.5939, allocations: 47.16 kB / 0.5638 GB, free: 14.98 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009192/0.5948, allocations: 182.8 kB / 0.564 GB, free: 14.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=81): time 3.917e-06/0.5949, allocations: 0 / 0.564 GB, free: 14.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=115): time 0.02665/0.6215, allocations: 7.238 MB / 0.5711 GB, free: 7.438 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00017/0.6217, allocations: 123.9 kB / 0.5712 GB, free: 7.293 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002567/0.6243, allocations: 1.853 MB / 0.573 GB, free: 5.422 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001614/0.6245, allocations: 45.7 kB / 0.573 GB, free: 5.371 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008745/0.6254, allocations: 1.045 MB / 0.574 GB, free: 4.312 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004141/0.6258, allocations: 432.4 kB / 0.5745 GB, free: 3.887 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007124/0.6265, allocations: 419.3 kB / 0.5749 GB, free: 3.469 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.6266, allocations: 305.1 kB / 0.5751 GB, free: 3.168 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001296/0.6279, allocations: 0.8551 MB / 0.576 GB, free: 2.309 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002372/0.6303, allocations: 1.581 MB / 0.5775 GB, free: 388 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003311/0.6336, allocations: 2.337 MB / 0.5798 GB, free: 13.71 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.301e-05/0.6337, allocations: 8 kB / 0.5798 GB, free: 13.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008349/0.642, allocations: 3.311 MB / 0.5831 GB, free: 10.36 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/0.6421, allocations: 18.5 kB / 0.5831 GB, free: 10.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.204e-05/0.6422, allocations: 28 kB / 0.5831 GB, free: 10.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004677/0.6469, allocations: 1.03 MB / 0.5841 GB, free: 9.273 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001642/0.6485, allocations: 431.3 kB / 0.5845 GB, free: 8.852 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01069/0.6592, allocations: 7.493 MB / 0.5918 GB, free: 0.9141 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001986/0.6613, allocations: 91.84 kB / 0.5919 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002361/0.6615, allocations: 120 kB / 0.592 GB, free: 0.707 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.0009108/0.6624, allocations: 413 kB / 0.5924 GB, free: 300 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000377/0.6628, allocations: 151 kB / 0.5926 GB, free: 148 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006256/0.6691, allocations: 2.191 MB / 0.5947 GB, free: 13.91 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.882e-05/0.6691, allocations: 15.94 kB / 0.5947 GB, free: 13.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.6691, allocations: 4 kB / 0.5947 GB, free: 13.89 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.6691, allocations: 7.969 kB / 0.5947 GB, free: 13.89 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009124/0.6783, allocations: 3.933 MB / 0.5986 GB, free: 9.867 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.6783, allocations: 160 / 0.5986 GB, free: 9.867 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006886/0.679, allocations: 183.7 kB / 0.5988 GB, free: 9.688 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004092/0.6831, allocations: 0.9169 MB / 0.5996 GB, free: 8.754 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.6832, allocations: 47.95 kB / 0.5997 GB, free: 8.707 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008272/0.6915, allocations: 6.778 MB / 0.6063 GB, free: 1.488 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.6915, allocations: 8 kB / 0.6063 GB, free: 1.48 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3447/1.036, allocations: 2.904 MB / 0.6092 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006329/1.037, allocations: 211.8 kB / 0.6094 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002455/1.037, allocations: 27.34 kB / 0.6094 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009717/1.038, allocations: 31.31 kB / 0.6094 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003916/1.039, allocations: 118.2 kB / 0.6095 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001474/1.039, allocations: 49.73 kB / 0.6096 GB, free: 115.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001999/1.041, allocations: 1.302 MB / 0.6108 GB, free: 114.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.041, allocations: 0 / 0.6108 GB, free: 114.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003986/1.045, allocations: 0.9739 MB / 0.6118 GB, free: 114.8 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.002373/1.047, allocations: 0.9968 MB / 0.6128 GB, free: 114.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005262/1.052, allocations: 2.511 MB / 0.6152 GB, free: 113.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/1.052, allocations: 3.312 kB / 0.6152 GB, free: 113.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002194/1.055, allocations: 1.236 MB / 0.6164 GB, free: 112.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/1.056, allocations: 236.4 kB / 0.6167 GB, free: 112.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00604/1.062, allocations: 3.218 MB / 0.6198 GB, free: 111.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000886/1.063, allocations: 1.314 MB / 0.6211 GB, free: 110.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001182/1.065, allocations: 328.1 kB / 0.6214 GB, free: 110.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003983/1.065, allocations: 179.8 kB / 0.6216 GB, free: 110.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.343e-06/1.065, allocations: 6.594 kB / 0.6216 GB, free: 110.5 MB / 478.1 MB Notification: Performance of Templates: time 0.05201/1.117, allocations: 36.41 MB / 0.6571 GB, free: 88.86 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)