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.001477/0.001477, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001779/0.001779, allocations: 194.7 kB / 16.14 MB, free: 6.66 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.405/1.405, allocations: 222.9 MB / 239.8 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2153/0.2153, allocations: 15.32 MB / 305.3 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001434, allocations: 71.83 kB / 369.6 MB, free: 4.418 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1046, allocations: 53.61 MB / 423.3 MB, free: 14.76 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.3414/0.446, allocations: 29.39 MB / 452.6 MB, free: 39.33 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02168/0.4677, allocations: 22.05 MB / 474.7 MB, free: 28.87 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002669/0.4705, allocations: 48.38 kB / 474.7 MB, free: 28.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001849/0.4723, allocations: 0.5107 MB / 475.3 MB, free: 28.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004267/0.4766, allocations: 1.21 MB / 476.5 MB, free: 27.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008998/0.4856, allocations: 2.88 MB / 479.3 MB, free: 26.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003389/0.4891, allocations: 2.321 MB / 481.7 MB, free: 25.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001849/0.4909, allocations: 1.348 MB / 483 MB, free: 24.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001613/0.4926, allocations: 0.9703 MB / 484 MB, free: 24.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001899/0.4945, allocations: 1.175 MB / 485.2 MB, free: 23.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004438/0.4949, allocations: 151.9 kB / 485.3 MB, free: 23.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009218/0.5042, allocations: 2.276 MB / 487.6 MB, free: 22.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000995/0.5052, allocations: 471.6 kB / 488 MB, free: 22.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00187/0.5071, allocations: 1.055 MB / 489.1 MB, free: 22.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01109/0.5182, allocations: 4.544 MB / 493.6 MB, free: 20.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.5182, allocations: 0 / 493.6 MB, free: 20.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.5182, allocations: 0 / 493.6 MB, free: 20.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.003e-05/0.5183, allocations: 4 kB / 493.6 MB, free: 20.18 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.005139/0.5235, allocations: 2.675 MB / 496.3 MB, free: 18.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.5235, allocations: 9.906 kB / 496.3 MB, free: 18.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002002/0.5255, allocations: 0.4924 MB / 496.8 MB, free: 18.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002025/0.5276, allocations: 1.159 MB / 498 MB, free: 17.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001635/0.5278, allocations: 206.4 kB / 498.2 MB, free: 17.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003401/0.5281, allocations: 187.3 kB / 498.4 MB, free: 17.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004776/0.5329, allocations: 2.641 MB / 0.4893 GB, free: 16.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.99e-05/0.533, allocations: 5.734 kB / 0.4893 GB, free: 16.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000178/0.5331, allocations: 77 kB / 0.4893 GB, free: 16.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-05/0.5332, allocations: 48.34 kB / 0.4894 GB, free: 16.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004488/0.5377, allocations: 3.281 MB / 0.4926 GB, free: 13.6 MB / 366.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.01272/0.5504, allocations: 8.472 MB / 0.5009 GB, free: 6.184 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001748/0.5522, allocations: 1.336 MB / 0.5022 GB, free: 4.887 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008145/0.553, allocations: 0.6269 MB / 0.5028 GB, free: 4.316 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00807/0.5611, allocations: 5.552 MB / 0.5082 GB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.5612, allocations: 51.16 kB / 0.5083 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009901/0.5622, allocations: 182.3 kB / 0.5084 GB, free: 14.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 3.267e-06/0.5622, allocations: 0 / 0.5084 GB, free: 14.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.02947/0.5917, allocations: 7 MB / 0.5153 GB, free: 7.051 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.878e-05/0.5918, allocations: 111.8 kB / 0.5154 GB, free: 6.918 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002463/0.5943, allocations: 1.853 MB / 0.5172 GB, free: 5.043 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000255/0.5946, allocations: 49.64 kB / 0.5172 GB, free: 4.988 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008191/0.5954, allocations: 1.006 MB / 0.5182 GB, free: 3.965 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005524/0.596, allocations: 418.1 kB / 0.5186 GB, free: 3.551 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006856/0.5967, allocations: 411.2 kB / 0.519 GB, free: 3.141 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.5968, allocations: 305.1 kB / 0.5193 GB, free: 2.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00142/0.5982, allocations: 0.8473 MB / 0.5201 GB, free: 1.988 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001977/0.6002, allocations: 1.581 MB / 0.5217 GB, free: 60 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003076/0.6033, allocations: 2.309 MB / 0.5239 GB, free: 13.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.638e-05/0.6034, allocations: 12 kB / 0.5239 GB, free: 13.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008333/0.6117, allocations: 3.249 MB / 0.5271 GB, free: 10.13 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.02e-05/0.6118, allocations: 20.09 kB / 0.5271 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.634e-05/0.6118, allocations: 24 kB / 0.5271 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005146/0.617, allocations: 1.001 MB / 0.5281 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001696/0.6187, allocations: 427.3 kB / 0.5285 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/0.6288, allocations: 6.871 MB / 0.5352 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/0.631, allocations: 119.6 kB / 0.5354 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003379/0.6314, allocations: 116 kB / 0.5355 GB, free: 1.125 MB / 398.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.000863/0.6323, allocations: 405.1 kB / 0.5359 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004371/0.6327, allocations: 142.2 kB / 0.536 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006734/0.6394, allocations: 2.141 MB / 0.5381 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.899e-05/0.6395, allocations: 20 kB / 0.5381 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.6395, allocations: 0 / 0.5381 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.993e-05/0.6396, allocations: 11.98 kB / 0.5381 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01057/0.6501, allocations: 3.85 MB / 0.5419 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.68e-05/0.6502, allocations: 4 kB / 0.5419 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009334/0.6511, allocations: 167.8 kB / 0.542 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004885/0.656, allocations: 0.9042 MB / 0.5429 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002488/0.6563, allocations: 47.91 kB / 0.543 GB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008891/0.6652, allocations: 6.238 MB / 0.5491 GB, free: 2.633 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.6653, allocations: 0 / 0.5491 GB, free: 2.633 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008162/0.6735, allocations: 2.842 MB / 0.5518 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005818/0.6741, allocations: 211.3 kB / 0.552 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004951/0.6746, allocations: 27.98 kB / 0.5521 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001284/0.6759, allocations: 47.92 kB / 0.5521 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004024/0.6763, allocations: 109 kB / 0.5522 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001641/0.6765, allocations: 59.91 kB / 0.5523 GB, free: 15.27 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00203/0.6785, allocations: 1.298 MB / 0.5535 GB, free: 13.97 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6786, allocations: 0 / 0.5535 GB, free: 13.97 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004797/0.6834, allocations: 0.9564 MB / 0.5545 GB, free: 13.02 MB / 430.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.003057/0.6865, allocations: 0.9795 MB / 0.5554 GB, free: 12.03 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005696/0.6922, allocations: 2.484 MB / 0.5579 GB, free: 9.484 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/0.6922, allocations: 1.875 kB / 0.5579 GB, free: 9.484 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002488/0.6947, allocations: 1.213 MB / 0.559 GB, free: 8.207 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002191/0.6969, allocations: 225.1 kB / 0.5593 GB, free: 7.984 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007391/0.7044, allocations: 3.976 MB / 0.5631 GB, free: 3.961 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/0.7058, allocations: 1.314 MB / 0.5644 GB, free: 2.613 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001647/0.7074, allocations: 340 kB / 0.5647 GB, free: 2.277 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004954/0.7079, allocations: 179.3 kB / 0.5649 GB, free: 2.102 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.7079, allocations: 4 kB / 0.5649 GB, free: 2.098 MB / 430.1 MB Notification: Performance of Templates: time 0.2278/0.9358, allocations: 34.19 MB / 0.5983 GB, free: 133.5 MB / 462.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)