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.009684/0.009684, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.001775/0.001776, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1192/0.1192, allocations: 15.3 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 60.12 kB / 425.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1215, allocations: 53.61 MB / 478.8 MB, free: 5.777 MB / 350.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.04772/0.1693, allocations: 30.62 MB / 0.4975 GB, free: 7.211 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3348/0.5041, allocations: 28.87 MB / 0.5257 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003131/0.5072, allocations: 31.56 kB / 0.5257 GB, free: 12.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002864/0.5101, allocations: 0.6835 MB / 0.5264 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01073/0.5209, allocations: 2.228 MB / 0.5285 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0162/0.5371, allocations: 3.923 MB / 0.5324 GB, free: 8.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007447/0.5446, allocations: 3.074 MB / 0.5354 GB, free: 6.922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004252/0.5489, allocations: 1.975 MB / 0.5373 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003666/0.5526, allocations: 1.456 MB / 0.5387 GB, free: 5.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003779/0.5564, allocations: 1.657 MB / 0.5403 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009891/0.5574, allocations: 296.9 kB / 0.5406 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01567/0.573, allocations: 3.138 MB / 0.5437 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001459/0.5746, allocations: 0.6927 MB / 0.5444 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003617/0.5782, allocations: 1.432 MB / 0.5458 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02404/0.6023, allocations: 6.348 MB / 0.552 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.6023, allocations: 0 / 0.552 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.6024, allocations: 0 / 0.552 GB, free: 11.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001824/0.6025, allocations: 0 / 0.552 GB, free: 11.75 MB / 398.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.009456/0.612, allocations: 3.333 MB / 0.5552 GB, free: 8.371 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.6121, allocations: 12.03 kB / 0.5552 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002861/0.6149, allocations: 0.5697 MB / 0.5558 GB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002781/0.6177, allocations: 1.401 MB / 0.5572 GB, free: 6.344 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.618, allocations: 273.1 kB / 0.5574 GB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004071/0.6184, allocations: 247.8 kB / 0.5577 GB, free: 5.816 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004892/0.6233, allocations: 3.031 MB / 0.5606 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.777e-05/0.6234, allocations: 4 kB / 0.5606 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002343/0.6236, allocations: 98.81 kB / 0.5607 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.937e-05/0.6236, allocations: 60 kB / 0.5608 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005583/0.6292, allocations: 3.602 MB / 0.5643 GB, free: 14.93 MB / 414.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.01616/0.6454, allocations: 10.41 MB / 0.5744 GB, free: 4.176 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003065/0.6485, allocations: 2.255 MB / 0.5766 GB, free: 1.816 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001615/0.6502, allocations: 1.117 MB / 0.5777 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01445/0.6646, allocations: 8.747 MB / 0.5863 GB, free: 7.098 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.6647, allocations: 47.88 kB / 0.5863 GB, free: 7.043 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001245/0.666, allocations: 264.5 kB / 0.5866 GB, free: 6.785 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 9.488e-06/0.666, allocations: 3.938 kB / 0.5866 GB, free: 6.781 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.03801/0.704, allocations: 9.711 MB / 0.5961 GB, free: 13.06 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.545e-05/0.7041, allocations: 120.8 kB / 0.5962 GB, free: 12.92 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002334/0.7065, allocations: 1.462 MB / 0.5976 GB, free: 11.45 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00033/0.7068, allocations: 60.36 kB / 0.5977 GB, free: 11.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008166/0.7076, allocations: 1.147 MB / 0.5988 GB, free: 10.22 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007462/0.7084, allocations: 0.6317 MB / 0.5994 GB, free: 9.578 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001033/0.7094, allocations: 0.5129 MB / 0.5999 GB, free: 9.059 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.7096, allocations: 305.1 kB / 0.6002 GB, free: 8.758 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001786/0.7113, allocations: 0.9449 MB / 0.6011 GB, free: 7.812 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002632/0.714, allocations: 1.896 MB / 0.603 GB, free: 5.504 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004538/0.7185, allocations: 2.989 MB / 0.6059 GB, free: 2.148 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.939e-05/0.7186, allocations: 12 kB / 0.6059 GB, free: 2.137 MB / 446.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.0108/0.7294, allocations: 3.884 MB / 0.6097 GB, free: 14.27 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.187e-05/0.7295, allocations: 27.92 kB / 0.6097 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.359e-05/0.7295, allocations: 34.66 kB / 0.6098 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005483/0.735, allocations: 1.178 MB / 0.6109 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0023/0.7374, allocations: 0.5772 MB / 0.6115 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/0.7478, allocations: 7.514 MB / 0.6188 GB, free: 4.535 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002616/0.7505, allocations: 110.5 kB / 0.6189 GB, free: 4.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007219/0.7512, allocations: 162.6 kB / 0.6191 GB, free: 4.273 MB / 462.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.002057/0.7533, allocations: 491.6 kB / 0.6195 GB, free: 3.785 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009294/0.7542, allocations: 177.7 kB / 0.6197 GB, free: 3.609 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01111/0.7654, allocations: 3.253 MB / 0.6229 GB, free: 432 kB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.292e-05/0.7654, allocations: 20 kB / 0.6229 GB, free: 412 kB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.981e-05/0.7654, allocations: 6.625 kB / 0.6229 GB, free: 408 kB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-05/0.7655, allocations: 7.969 kB / 0.6229 GB, free: 400 kB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0145/0.78, allocations: 5.439 MB / 0.6282 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/0.78, allocations: 4 kB / 0.6282 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.7814, allocations: 306.2 kB / 0.6285 GB, free: 10.56 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005059/0.7865, allocations: 1.042 MB / 0.6295 GB, free: 9.527 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000318/0.7868, allocations: 71.94 kB / 0.6296 GB, free: 9.457 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008778/0.7956, allocations: 6.806 MB / 0.6363 GB, free: 2.238 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.7957, allocations: 4 kB / 0.6363 GB, free: 2.234 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01123/0.8069, allocations: 4.135 MB / 0.6403 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006981/0.8077, allocations: 230.8 kB / 0.6405 GB, free: 13.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005479/0.8082, allocations: 42.67 kB / 0.6406 GB, free: 13.76 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001445/0.8097, allocations: 39.98 kB / 0.6406 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000511/0.8102, allocations: 185.6 kB / 0.6408 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002458/0.8105, allocations: 79.95 kB / 0.6408 GB, free: 13.46 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001522/0.812, allocations: 0.9546 MB / 0.6418 GB, free: 12.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.812, allocations: 3.938 kB / 0.6418 GB, free: 12.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00505/0.8171, allocations: 1.249 MB / 0.643 GB, free: 11.25 MB / 494.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.003527/0.8206, allocations: 1.298 MB / 0.6443 GB, free: 9.949 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006779/0.8274, allocations: 3.062 MB / 0.6473 GB, free: 6.832 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/0.8275, allocations: 0.9375 kB / 0.6473 GB, free: 6.832 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003441/0.8309, allocations: 1.621 MB / 0.6488 GB, free: 5.148 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003396/0.8343, allocations: 317.3 kB / 0.6491 GB, free: 4.867 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009475/0.8438, allocations: 4.033 MB / 0.6531 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001795/0.8456, allocations: 1.49 MB / 0.6545 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002152/0.8478, allocations: 454.2 kB / 0.655 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008268/0.8487, allocations: 284.5 kB / 0.6552 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of SimCode: time 3.186e-06/0.8487, allocations: 0 / 0.6552 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of Templates: time 0.07752/0.9262, allocations: 47.63 MB / 0.7018 GB, free: 15.19 MB / 0.545 GB 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)