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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.08497/0.08497, allocations: 15.28 MB / 31.08 MB, free: 3.109 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 190.8 kB / 36.14 MB, free: 2.145 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 222.9 MB / 264 MB, free: 4.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009935/0.0009934, allocations: 111.2 kB / 318.4 MB, free: 3.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001071, allocations: 52.62 kB / 382.7 MB, free: 48.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08277/0.08386, allocations: 53.61 MB / 436.3 MB, free: 1.043 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721: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.0-master/package.mo:4721:7-4721: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.0354/0.1193, allocations: 27.57 MB / 463.9 MB, free: 5.559 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02424/0.1436, allocations: 21.97 MB / 485.9 MB, free: 15.51 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002458/0.1461, allocations: 51.69 kB / 485.9 MB, free: 15.46 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002511/0.1486, allocations: 0.5161 MB / 486.4 MB, free: 14.94 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005731/0.1544, allocations: 1.192 MB / 487.6 MB, free: 13.74 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009979/0.1644, allocations: 2.879 MB / 490.5 MB, free: 10.85 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003597/0.168, allocations: 2.339 MB / 492.8 MB, free: 8.5 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002144/0.1702, allocations: 1.353 MB / 494.2 MB, free: 7.102 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0016/0.1718, allocations: 0.9735 MB / 495.2 MB, free: 6.125 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001877/0.1737, allocations: 1.171 MB / 496.3 MB, free: 4.949 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006533/0.1744, allocations: 152 kB / 496.5 MB, free: 4.801 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007611/0.182, allocations: 2.25 MB / 498.7 MB, free: 2.547 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007513/0.1828, allocations: 474.4 kB / 499.2 MB, free: 2.082 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001726/0.1845, allocations: 1.057 MB / 0.4885 GB, free: 1.02 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009709/0.1942, allocations: 4.508 MB / 0.4929 GB, free: 12.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.1943, allocations: 0 / 0.4929 GB, free: 12.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.376e-06/0.1943, allocations: 3.984 kB / 0.4929 GB, free: 12.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.783e-05/0.1944, allocations: 0 / 0.4929 GB, free: 12.49 MB / 378.7 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.005503/0.1999, allocations: 2.673 MB / 0.4955 GB, free: 9.762 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.2, allocations: 8.875 kB / 0.4956 GB, free: 9.754 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001916/0.2019, allocations: 0.4975 MB / 0.496 GB, free: 9.254 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00226/0.2042, allocations: 1.162 MB / 0.4972 GB, free: 8.051 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/0.2044, allocations: 207.5 kB / 0.4974 GB, free: 7.836 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003855/0.2048, allocations: 191.9 kB / 0.4976 GB, free: 7.648 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00417/0.2089, allocations: 2.644 MB / 0.5001 GB, free: 4.941 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.186e-05/0.209, allocations: 4 kB / 0.5001 GB, free: 4.938 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001996/0.2092, allocations: 76 kB / 0.5002 GB, free: 4.863 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.915e-05/0.2093, allocations: 48 kB / 0.5003 GB, free: 4.816 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004981/0.2143, allocations: 3.275 MB / 0.5035 GB, free: 1.535 MB / 378.7 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.1848/0.3991, allocations: 8.448 MB / 0.5117 GB, free: 65.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.4008, allocations: 1.317 MB / 0.513 GB, free: 65.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008469/0.4017, allocations: 0.6329 MB / 0.5136 GB, free: 65.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007902/0.4096, allocations: 5.565 MB / 0.519 GB, free: 62.26 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.4097, allocations: 45.84 kB / 0.5191 GB, free: 62.22 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007817/0.4105, allocations: 177.7 kB / 0.5193 GB, free: 62.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 3.607e-06/0.4105, allocations: 0 / 0.5193 GB, free: 62.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=115): time 0.02521/0.4357, allocations: 7.007 MB / 0.5261 GB, free: 60.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.4358, allocations: 120.7 kB / 0.5262 GB, free: 59.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002256/0.4381, allocations: 1.854 MB / 0.528 GB, free: 58.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002241/0.4383, allocations: 45.36 kB / 0.5281 GB, free: 58.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005657/0.4389, allocations: 1.009 MB / 0.5291 GB, free: 58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000339/0.4392, allocations: 420.7 kB / 0.5295 GB, free: 57.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006117/0.4398, allocations: 417 kB / 0.5299 GB, free: 57.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.494e-05/0.4399, allocations: 303.8 kB / 0.5301 GB, free: 57.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/0.4412, allocations: 0.845 MB / 0.531 GB, free: 56.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/0.4429, allocations: 1.581 MB / 0.5325 GB, free: 55.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002313/0.4452, allocations: 2.311 MB / 0.5348 GB, free: 53.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.596e-05/0.4452, allocations: 8.906 kB / 0.5348 GB, free: 53.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007548/0.4528, allocations: 3.242 MB / 0.5379 GB, free: 51.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.729e-05/0.4528, allocations: 21.95 kB / 0.538 GB, free: 51.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.468e-05/0.4529, allocations: 24.3 kB / 0.538 GB, free: 51.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004229/0.4571, allocations: 0.9934 MB / 0.539 GB, free: 51.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/0.4586, allocations: 434.8 kB / 0.5394 GB, free: 51.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007745/0.4663, allocations: 6.865 MB / 0.5461 GB, free: 45.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002/0.4684, allocations: 121.2 kB / 0.5462 GB, free: 45.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004258/0.4688, allocations: 113 kB / 0.5463 GB, free: 45.18 MB / 378.7 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.001223/0.4701, allocations: 409.5 kB / 0.5467 GB, free: 44.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000565/0.4706, allocations: 144.9 kB / 0.5468 GB, free: 44.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006342/0.477, allocations: 2.141 MB / 0.5489 GB, free: 43.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.477, allocations: 12 kB / 0.5489 GB, free: 43.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.477, allocations: 4 kB / 0.5489 GB, free: 43.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.4771, allocations: 7.969 kB / 0.5489 GB, free: 43.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008197/0.4853, allocations: 3.85 MB / 0.5527 GB, free: 39.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.4853, allocations: 4 kB / 0.5527 GB, free: 39.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000661/0.486, allocations: 177.7 kB / 0.5529 GB, free: 39.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003838/0.4898, allocations: 0.8949 MB / 0.5538 GB, free: 38.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/0.49, allocations: 43.97 kB / 0.5538 GB, free: 38.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006183/0.4962, allocations: 6.246 MB / 0.5599 GB, free: 31.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4962, allocations: 7.969 kB / 0.5599 GB, free: 31.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02537/0.5216, allocations: 12.89 MB / 0.5725 GB, free: 18.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003658/0.522, allocations: 203.3 kB / 0.5727 GB, free: 18.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003502/0.5223, allocations: 26.62 kB / 0.5727 GB, free: 18.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.5234, allocations: 47.88 kB / 0.5728 GB, free: 18.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003502/0.5238, allocations: 115.4 kB / 0.5729 GB, free: 18.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/0.524, allocations: 52.02 kB / 0.5729 GB, free: 18.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001376/0.5253, allocations: 1.302 MB / 0.5742 GB, free: 16.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5254, allocations: 0 / 0.5742 GB, free: 16.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003567/0.5289, allocations: 1.148 MB / 0.5753 GB, free: 15.68 MB / 378.7 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.001808/0.5308, allocations: 0.9695 MB / 0.5763 GB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003921/0.5347, allocations: 2.475 MB / 0.5787 GB, free: 12.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.5347, allocations: 4 kB / 0.5787 GB, free: 12.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00173/0.5364, allocations: 1.207 MB / 0.5799 GB, free: 11.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/0.5382, allocations: 227.8 kB / 0.5801 GB, free: 10.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006461/0.5446, allocations: 4.936 MB / 0.5849 GB, free: 6.027 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009355/0.5456, allocations: 1.347 MB / 0.5862 GB, free: 4.672 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0015/0.5471, allocations: 352.9 kB / 0.5865 GB, free: 4.422 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004535/0.5476, allocations: 187.2 kB / 0.5867 GB, free: 4.246 MB / 378.7 MB Notification: Performance of SimCode: time 1.553e-06/0.5476, allocations: 0 / 0.5867 GB, free: 4.246 MB / 378.7 MB Notification: Performance of Templates: time 0.05666/0.6043, allocations: 37.82 MB / 0.6236 GB, free: 14.8 MB / 426.7 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)