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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001399/0.0014, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.001422/0.001422, allocations: 191.3 kB / 16.25 MB, free: 6.59 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.505/1.505, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2295/0.2295, allocations: 15.32 MB / 305.4 MB, free: 15.36 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 67.89 kB / 369.8 MB, free: 4.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1168, allocations: 53.61 MB / 423.4 MB, free: 14.65 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.ElectrolysisMethanation): time 0.2461/0.363, allocations: 32.75 MB / 456.2 MB, free: 37.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02489/0.3879, allocations: 28.59 MB / 484.8 MB, free: 23.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002691/0.3906, allocations: 53.75 kB / 484.8 MB, free: 23.74 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00223/0.3929, allocations: 0.5999 MB / 485.4 MB, free: 23.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0077/0.4006, allocations: 2.03 MB / 487.5 MB, free: 22.24 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01172/0.4124, allocations: 3.512 MB / 491 MB, free: 20.21 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005704/0.4181, allocations: 3.076 MB / 494 MB, free: 18.7 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002332/0.4204, allocations: 1.962 MB / 496 MB, free: 17.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001917/0.4224, allocations: 1.511 MB / 497.5 MB, free: 17.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00242/0.4248, allocations: 1.683 MB / 499.2 MB, free: 16.49 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005993/0.4254, allocations: 294.9 kB / 499.5 MB, free: 16.49 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01298/0.4384, allocations: 3.215 MB / 0.4909 GB, free: 13.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001759/0.4402, allocations: 0.6974 MB / 0.4916 GB, free: 13.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002702/0.4429, allocations: 1.441 MB / 0.493 GB, free: 11.97 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.017/0.46, allocations: 6.079 MB / 0.499 GB, free: 7.008 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.46, allocations: 0 / 0.499 GB, free: 7.008 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.46, allocations: 0 / 0.499 GB, free: 7.008 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.521e-05/0.4601, allocations: 0.6094 kB / 0.499 GB, free: 7.008 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: 609 * Number of variables: 609 Notification: Performance of Generate backend data structure: time 0.0063/0.4664, allocations: 3.334 MB / 0.5022 GB, free: 3.969 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.4665, allocations: 8.031 kB / 0.5022 GB, free: 3.961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002233/0.4687, allocations: 0.5644 MB / 0.5028 GB, free: 3.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002111/0.4708, allocations: 1.372 MB / 0.5041 GB, free: 2.312 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/0.471, allocations: 267.8 kB / 0.5044 GB, free: 2.031 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003225/0.4713, allocations: 245 kB / 0.5046 GB, free: 1.793 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00488/0.4762, allocations: 3.047 MB / 0.5076 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.854e-05/0.4763, allocations: 4 kB / 0.5076 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002734/0.4766, allocations: 96 kB / 0.5077 GB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-05/0.4766, allocations: 60 kB / 0.5077 GB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005872/0.4825, allocations: 3.597 MB / 0.5112 GB, free: 11.9 MB / 382.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.01678/0.4993, allocations: 10.47 MB / 0.5215 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003277/0.5026, allocations: 2.253 MB / 0.5237 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/0.5043, allocations: 1.121 MB / 0.5248 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01413/0.5185, allocations: 8.755 MB / 0.5333 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.375e-05/0.5186, allocations: 51.88 kB / 0.5334 GB, free: 3.902 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001274/0.5198, allocations: 250.1 kB / 0.5336 GB, free: 3.656 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 4.228e-06/0.5199, allocations: 0 / 0.5336 GB, free: 3.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.03719/0.5571, allocations: 9.708 MB / 0.5431 GB, free: 9.824 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.295e-05/0.5572, allocations: 128.8 kB / 0.5432 GB, free: 9.676 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002111/0.5593, allocations: 1.458 MB / 0.5446 GB, free: 8.207 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002843/0.5596, allocations: 53.7 kB / 0.5447 GB, free: 8.148 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00089/0.5605, allocations: 1.151 MB / 0.5458 GB, free: 6.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007164/0.5612, allocations: 0.6318 MB / 0.5464 GB, free: 6.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008646/0.5621, allocations: 0.5168 MB / 0.5469 GB, free: 5.816 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.5623, allocations: 305.1 kB / 0.5472 GB, free: 5.516 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00177/0.564, allocations: 0.9423 MB / 0.5481 GB, free: 4.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002816/0.5669, allocations: 1.902 MB / 0.55 GB, free: 2.227 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004486/0.5714, allocations: 2.988 MB / 0.5529 GB, free: 14.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.658e-05/0.5714, allocations: 8 kB / 0.5529 GB, free: 14.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01139/0.5828, allocations: 3.9 MB / 0.5567 GB, free: 10.87 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.129e-05/0.5829, allocations: 16 kB / 0.5567 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.969e-05/0.5829, allocations: 32 kB / 0.5568 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006012/0.589, allocations: 1.183 MB / 0.5579 GB, free: 9.625 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002619/0.5916, allocations: 0.5889 MB / 0.5585 GB, free: 9.035 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/0.6031, allocations: 7.511 MB / 0.5658 GB, free: 1.078 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002638/0.6057, allocations: 151.6 kB / 0.566 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003842/0.6061, allocations: 167.9 kB / 0.5661 GB, free: 0.7656 MB / 430.1 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.001234/0.6074, allocations: 484.9 kB / 0.5666 GB, free: 288 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006003/0.608, allocations: 177.8 kB / 0.5668 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01053/0.6185, allocations: 3.257 MB / 0.5699 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.438e-05/0.6186, allocations: 16 kB / 0.57 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.6186, allocations: 4 kB / 0.57 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.743e-05/0.6187, allocations: 15.97 kB / 0.57 GB, free: 12.78 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01407/0.6327, allocations: 5.444 MB / 0.5753 GB, free: 7.238 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/0.6328, allocations: 4.281 kB / 0.5753 GB, free: 7.234 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/0.6342, allocations: 307.6 kB / 0.5756 GB, free: 6.934 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005227/0.6394, allocations: 1.042 MB / 0.5766 GB, free: 5.875 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002626/0.6397, allocations: 75.89 kB / 0.5767 GB, free: 5.801 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009585/0.6493, allocations: 6.801 MB / 0.5833 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/0.6493, allocations: 8.031 kB / 0.5833 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01092/0.6603, allocations: 4.129 MB / 0.5874 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006431/0.6609, allocations: 230.8 kB / 0.5876 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003167/0.6613, allocations: 43.98 kB / 0.5876 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.6625, allocations: 71.81 kB / 0.5877 GB, free: 9.996 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004659/0.663, allocations: 185.6 kB / 0.5879 GB, free: 9.812 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001852/0.6632, allocations: 79.95 kB / 0.588 GB, free: 9.734 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001395/0.6646, allocations: 0.9507 MB / 0.5889 GB, free: 8.785 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6646, allocations: 3.938 kB / 0.5889 GB, free: 8.781 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004459/0.6691, allocations: 1.241 MB / 0.5901 GB, free: 7.539 MB / 462.1 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.002803/0.6719, allocations: 1.307 MB / 0.5914 GB, free: 6.219 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008091/0.68, allocations: 3.312 MB / 0.5946 GB, free: 2.855 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.68, allocations: 4.438 kB / 0.5946 GB, free: 2.852 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003134/0.6832, allocations: 1.625 MB / 0.5962 GB, free: 1.164 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001872/0.685, allocations: 318.6 kB / 0.5965 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1896/0.8747, allocations: 5.062 MB / 0.6014 GB, free: 128.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008946/0.8756, allocations: 1.478 MB / 0.6029 GB, free: 127.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001953/0.8776, allocations: 469.6 kB / 0.6033 GB, free: 127.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006029/0.8782, allocations: 287.5 kB / 0.6036 GB, free: 127.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.483e-06/0.8782, allocations: 0 / 0.6036 GB, free: 127.8 MB / 462.1 MB Notification: Performance of Templates: time 0.07772/0.9559, allocations: 46.19 MB / 0.6487 GB, free: 113.6 MB / 462.1 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)