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.00592/0.00592, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001202/0.001203, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.3216/0.3216, allocations: 15.31 MB / 305.8 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 59.91 kB / 425.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3191, allocations: 53.61 MB / 478.8 MB, free: 25.89 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.03754/0.3566, allocations: 29 MB / 0.4959 GB, free: 5.637 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02622/0.3829, allocations: 22.04 MB / 0.5174 GB, free: 15.51 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002772/0.3857, allocations: 23.88 kB / 0.5175 GB, free: 15.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001881/0.3876, allocations: 0.5699 MB / 0.518 GB, free: 14.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005042/0.3927, allocations: 1.358 MB / 0.5193 GB, free: 13.54 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01021/0.4029, allocations: 3.301 MB / 0.5226 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004143/0.4071, allocations: 2.402 MB / 0.5249 GB, free: 7.812 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002095/0.4092, allocations: 1.578 MB / 0.5264 GB, free: 6.184 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001341/0.4105, allocations: 1.036 MB / 0.5275 GB, free: 5.145 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001418/0.412, allocations: 1.199 MB / 0.5286 GB, free: 3.941 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003098/0.4123, allocations: 236 kB / 0.5289 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008813/0.4211, allocations: 2.34 MB / 0.5311 GB, free: 1.367 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007703/0.4219, allocations: 0.5335 MB / 0.5317 GB, free: 0.832 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001557/0.4235, allocations: 1.136 MB / 0.5328 GB, free: 15.69 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0114/0.4349, allocations: 4.847 MB / 0.5375 GB, free: 10.83 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.4349, allocations: 0 / 0.5375 GB, free: 10.83 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.435, allocations: 0 / 0.5375 GB, free: 10.83 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.435, allocations: 4 kB / 0.5375 GB, free: 10.82 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.004562/0.4395, allocations: 2.677 MB / 0.5401 GB, free: 8.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.4396, allocations: 8.031 kB / 0.5401 GB, free: 8.082 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001827/0.4414, allocations: 0.4911 MB / 0.5406 GB, free: 7.59 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001772/0.4432, allocations: 1.185 MB / 0.5418 GB, free: 6.359 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001703/0.4434, allocations: 207.5 kB / 0.542 GB, free: 6.145 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002964/0.4437, allocations: 191.9 kB / 0.5421 GB, free: 5.957 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003833/0.4475, allocations: 2.644 MB / 0.5447 GB, free: 3.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.956e-05/0.4476, allocations: 3.938 kB / 0.5447 GB, free: 3.246 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001763/0.4478, allocations: 87.94 kB / 0.5448 GB, free: 3.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.612e-05/0.4478, allocations: 44 kB / 0.5449 GB, free: 3.117 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004752/0.4526, allocations: 3.271 MB / 0.5481 GB, free: 15.84 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.0125/0.4651, allocations: 8.446 MB / 0.5563 GB, free: 7.102 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001983/0.4671, allocations: 1.317 MB / 0.5576 GB, free: 5.727 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000915/0.468, allocations: 0.6378 MB / 0.5582 GB, free: 5.078 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007963/0.476, allocations: 5.527 MB / 0.5636 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/0.4761, allocations: 51.16 kB / 0.5637 GB, free: 14.97 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007795/0.4768, allocations: 182.3 kB / 0.5638 GB, free: 14.79 MB / 446.1 MB Notification: Performance of pre-optimization done (n=81): time 2.525e-06/0.4769, allocations: 0 / 0.5638 GB, free: 14.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=115): time 0.0274/0.5043, allocations: 7.18 MB / 0.5708 GB, free: 7.477 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.306e-05/0.5044, allocations: 123.8 kB / 0.571 GB, free: 7.332 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002166/0.5066, allocations: 1.845 MB / 0.5728 GB, free: 5.469 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001316/0.5067, allocations: 45.7 kB / 0.5728 GB, free: 5.418 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006473/0.5074, allocations: 1.006 MB / 0.5738 GB, free: 4.395 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003542/0.5077, allocations: 414.2 kB / 0.5742 GB, free: 3.984 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005866/0.5083, allocations: 419.2 kB / 0.5746 GB, free: 3.566 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.222e-05/0.5084, allocations: 305.1 kB / 0.5749 GB, free: 3.266 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00124/0.5097, allocations: 0.8551 MB / 0.5757 GB, free: 2.406 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001792/0.5115, allocations: 1.581 MB / 0.5773 GB, free: 488 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002876/0.5144, allocations: 2.333 MB / 0.5795 GB, free: 13.81 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/0.5144, allocations: 8 kB / 0.5795 GB, free: 13.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007908/0.5223, allocations: 3.295 MB / 0.5828 GB, free: 10.48 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.337e-05/0.5224, allocations: 16 kB / 0.5828 GB, free: 10.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.536e-05/0.5224, allocations: 27.98 kB / 0.5828 GB, free: 10.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004896/0.5273, allocations: 1.036 MB / 0.5838 GB, free: 9.387 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/0.529, allocations: 435.3 kB / 0.5842 GB, free: 8.961 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.5397, allocations: 7.481 MB / 0.5915 GB, free: 1.035 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001935/0.5417, allocations: 103.7 kB / 0.5916 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002487/0.542, allocations: 120 kB / 0.5917 GB, free: 0.8164 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.0008368/0.5428, allocations: 405 kB / 0.5921 GB, free: 420 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003662/0.5432, allocations: 142.2 kB / 0.5923 GB, free: 276 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006769/0.55, allocations: 2.184 MB / 0.5944 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.975e-05/0.55, allocations: 19.94 kB / 0.5944 GB, free: 14.03 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.976e-06/0.55, allocations: 4 kB / 0.5944 GB, free: 14.02 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/0.55, allocations: 7.969 kB / 0.5944 GB, free: 14.02 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01022/0.5603, allocations: 3.94 MB / 0.5983 GB, free: 9.988 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/0.5603, allocations: 7.984 kB / 0.5983 GB, free: 9.98 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007627/0.5611, allocations: 171.8 kB / 0.5984 GB, free: 9.812 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004475/0.5656, allocations: 0.9287 MB / 0.5994 GB, free: 8.867 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/0.5657, allocations: 47.97 kB / 0.5994 GB, free: 8.82 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008597/0.5743, allocations: 6.761 MB / 0.606 GB, free: 1.617 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.83e-06/0.5743, allocations: 4.312 kB / 0.606 GB, free: 1.613 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.261/0.8354, allocations: 2.898 MB / 0.6088 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005021/0.8359, allocations: 210.2 kB / 0.609 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002115/0.8361, allocations: 23.66 kB / 0.6091 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009018/0.837, allocations: 37.91 kB / 0.6091 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003712/0.8374, allocations: 107.9 kB / 0.6092 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/0.8375, allocations: 58.09 kB / 0.6093 GB, free: 115.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001815/0.8394, allocations: 1.297 MB / 0.6105 GB, free: 115 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8394, allocations: 4.281 kB / 0.6105 GB, free: 115 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00376/0.8431, allocations: 0.9565 MB / 0.6115 GB, free: 114.9 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.00223/0.8454, allocations: 0.9835 MB / 0.6124 GB, free: 114.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004989/0.8504, allocations: 2.513 MB / 0.6149 GB, free: 113.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.8504, allocations: 2.094 kB / 0.6149 GB, free: 113.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002397/0.8528, allocations: 1.233 MB / 0.6161 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.001606/0.8544, allocations: 240 kB / 0.6163 GB, free: 112.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005555/0.86, allocations: 3.161 MB / 0.6194 GB, free: 111.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007322/0.8608, allocations: 1.314 MB / 0.6207 GB, free: 110.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009936/0.8618, allocations: 331.2 kB / 0.621 GB, free: 110.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003578/0.8621, allocations: 184.3 kB / 0.6212 GB, free: 110.6 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/0.8621, allocations: 1.688 kB / 0.6212 GB, free: 110.6 MB / 478.1 MB Notification: Performance of Templates: time 0.05649/0.9186, allocations: 36.4 MB / 0.6567 GB, free: 88.95 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)