Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.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.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") translateModel(Chemical.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.08339/0.08339, allocations: 15.29 MB / 31.09 MB, free: 3.113 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.001096/0.001096, allocations: 198.7 kB / 36.14 MB, free: 2.137 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.303/1.303, allocations: 222.9 MB / 264 MB, free: 4.781 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.000945/0.000945, allocations: 107.6 kB / 318.4 MB, free: 3.426 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0009931/0.0009932, allocations: 54.19 kB / 382.7 MB, free: 48.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09153/0.09253, allocations: 53.61 MB / 436.3 MB, free: 1.047 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.ElectrolysisMethanation): time 0.03586/0.1284, allocations: 29.34 MB / 465.7 MB, free: 3.789 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02883/0.1573, allocations: 28.66 MB / 494.3 MB, free: 7.027 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002444/0.1598, allocations: 59.62 kB / 494.4 MB, free: 6.969 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001704/0.1615, allocations: 0.6053 MB / 495 MB, free: 6.359 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005526/0.167, allocations: 1.937 MB / 496.9 MB, free: 4.41 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009516/0.1766, allocations: 3.435 MB / 0.4886 GB, free: 0.957 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004191/0.1808, allocations: 3.019 MB / 0.4916 GB, free: 13.92 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002365/0.1832, allocations: 1.712 MB / 0.4933 GB, free: 12.16 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002046/0.1852, allocations: 1.391 MB / 0.4946 GB, free: 10.77 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002382/0.1876, allocations: 1.615 MB / 0.4962 GB, free: 9.148 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005782/0.1882, allocations: 200 kB / 0.4964 GB, free: 8.953 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008659/0.1969, allocations: 2.991 MB / 0.4993 GB, free: 5.957 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008179/0.1977, allocations: 0.6151 MB / 0.4999 GB, free: 5.34 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001591/0.1994, allocations: 1.345 MB / 0.5012 GB, free: 3.988 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2241/0.4234, allocations: 5.889 MB / 0.507 GB, free: 34.47 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.297e-06/0.4235, allocations: 1.344 kB / 0.507 GB, free: 34.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.857e-06/0.4235, allocations: 0 / 0.507 GB, free: 34.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001372/0.4236, allocations: 3.719 kB / 0.507 GB, free: 34.47 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: 609 * Number of variables: 609 Notification: Performance of Generate backend data structure: time 0.01059/0.4342, allocations: 3.319 MB / 0.5102 GB, free: 33.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.4343, allocations: 10.78 kB / 0.5102 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004058/0.4384, allocations: 0.5649 MB / 0.5108 GB, free: 32.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004486/0.4429, allocations: 1.365 MB / 0.5121 GB, free: 32.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003827/0.4433, allocations: 275.6 kB / 0.5124 GB, free: 32.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000707/0.444, allocations: 243.8 kB / 0.5126 GB, free: 32.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007732/0.4518, allocations: 3.032 MB / 0.5156 GB, free: 32.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.65e-05/0.4519, allocations: 3 kB / 0.5156 GB, free: 32.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003014/0.4522, allocations: 98.66 kB / 0.5157 GB, free: 32.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.653e-05/0.4523, allocations: 59.12 kB / 0.5157 GB, free: 32.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00786/0.4601, allocations: 3.607 MB / 0.5192 GB, free: 32.13 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.02098/0.4811, allocations: 10.44 MB / 0.5294 GB, free: 28.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00322/0.4844, allocations: 2.26 MB / 0.5316 GB, free: 27.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001647/0.4861, allocations: 1.114 MB / 0.5327 GB, free: 27.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01069/0.4968, allocations: 8.771 MB / 0.5413 GB, free: 22.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.4968, allocations: 47.47 kB / 0.5413 GB, free: 22.52 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001077/0.4979, allocations: 262.7 kB / 0.5416 GB, free: 22.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 3.858e-06/0.4979, allocations: 0 / 0.5416 GB, free: 22.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=181): time 0.03215/0.5301, allocations: 9.703 MB / 0.5511 GB, free: 17.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.5302, allocations: 123.4 kB / 0.5512 GB, free: 17.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001439/0.5316, allocations: 1.458 MB / 0.5526 GB, free: 16.24 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002439/0.5319, allocations: 57.64 kB / 0.5527 GB, free: 16.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004308/0.5323, allocations: 1.149 MB / 0.5538 GB, free: 15.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004321/0.5327, allocations: 0.6338 MB / 0.5544 GB, free: 14.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007256/0.5335, allocations: 0.5145 MB / 0.5549 GB, free: 14.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.672e-05/0.5335, allocations: 311.8 kB / 0.5552 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.5348, allocations: 0.9417 MB / 0.5561 GB, free: 12.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/0.5365, allocations: 1.892 MB / 0.558 GB, free: 10.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003051/0.5395, allocations: 2.988 MB / 0.5609 GB, free: 7.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.28e-05/0.5396, allocations: 10.66 kB / 0.5609 GB, free: 7.422 MB / 378.7 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.008667/0.5483, allocations: 3.89 MB / 0.5647 GB, free: 3.742 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.867e-05/0.5483, allocations: 20 kB / 0.5647 GB, free: 3.723 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.151e-05/0.5483, allocations: 31.94 kB / 0.5647 GB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004788/0.5531, allocations: 1.192 MB / 0.5659 GB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001813/0.555, allocations: 0.5817 MB / 0.5665 GB, free: 1.984 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008371/0.5633, allocations: 6.912 MB / 0.5732 GB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002377/0.5658, allocations: 148.9 kB / 0.5734 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000295/0.5661, allocations: 152 kB / 0.5735 GB, free: 10.45 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (305): * Single equations (assignments): 300 * 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 {(3,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 {(1,18), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009388/0.567, allocations: 483.6 kB / 0.574 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004349/0.5675, allocations: 181.7 kB / 0.5742 GB, free: 9.824 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009379/0.5768, allocations: 3.258 MB / 0.5773 GB, free: 6.656 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-05/0.5769, allocations: 20 kB / 0.5774 GB, free: 6.637 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.497e-06/0.5769, allocations: 5.859 kB / 0.5774 GB, free: 6.633 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-05/0.577, allocations: 10.62 kB / 0.5774 GB, free: 6.625 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/0.5898, allocations: 5.431 MB / 0.5827 GB, free: 1.191 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.5898, allocations: 6.688 kB / 0.5827 GB, free: 1.188 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/0.5911, allocations: 305 kB / 0.583 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004832/0.5959, allocations: 1.056 MB / 0.584 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002161/0.5962, allocations: 71.95 kB / 0.5841 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007328/0.6035, allocations: 6.28 MB / 0.5902 GB, free: 9.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.6035, allocations: 4 kB / 0.5902 GB, free: 9.156 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03622/0.6398, allocations: 16.46 MB / 0.6063 GB, free: 8.379 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003586/0.6402, allocations: 234.8 kB / 0.6065 GB, free: 8.129 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002989/0.6405, allocations: 40 kB / 0.6065 GB, free: 8.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.6417, allocations: 73.06 kB / 0.6066 GB, free: 8.023 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004289/0.6421, allocations: 181.8 kB / 0.6068 GB, free: 7.855 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001652/0.6423, allocations: 83.95 kB / 0.6069 GB, free: 7.773 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001266/0.6436, allocations: 0.9546 MB / 0.6078 GB, free: 6.82 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6436, allocations: 0 / 0.6078 GB, free: 6.82 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005105/0.6487, allocations: 1.467 MB / 0.6092 GB, free: 5.355 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,CH4.logn,CO2.logn,H2.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 (156): * Single equations (assignments): 151 * 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 {(3,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,19), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002455/0.6512, allocations: 1.277 MB / 0.6105 GB, free: 4.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005464/0.6566, allocations: 3.044 MB / 0.6134 GB, free: 1.332 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.6567, allocations: 1.125 kB / 0.6134 GB, free: 1.332 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002744/0.6594, allocations: 1.633 MB / 0.615 GB, free: 15.68 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/0.6613, allocations: 290.5 kB / 0.6153 GB, free: 15.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008717/0.67, allocations: 6.342 MB / 0.6215 GB, free: 9.035 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/0.6711, allocations: 1.546 MB / 0.623 GB, free: 7.449 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002163/0.6733, allocations: 486.5 kB / 0.6235 GB, free: 7.02 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006707/0.674, allocations: 291.6 kB / 0.6238 GB, free: 6.742 MB / 442.7 MB Notification: Performance of SimCode: time 8.12e-07/0.674, allocations: 4 kB / 0.6238 GB, free: 6.738 MB / 442.7 MB Notification: Performance of Templates: time 0.06864/0.7426, allocations: 49.55 MB / 0.6722 GB, free: 5.707 MB / 490.7 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.makefile (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.sim & ./Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1)