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.00105/0.00105, allocations: 109 kB / 16.41 MB, free: 6.488 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.001069/0.00107, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.285/1.285, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07526/0.07526, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 56.12 kB / 425.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08541/0.08659, allocations: 53.62 MB / 479.5 MB, free: 5.789 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.03708/0.1237, allocations: 30.69 MB / 0.4982 GB, free: 7.164 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2189/0.3426, allocations: 28.87 MB / 0.5264 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001499/0.3442, allocations: 30.41 kB / 0.5264 GB, free: 12.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001941/0.3461, allocations: 0.691 MB / 0.5271 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006351/0.3525, allocations: 2.247 MB / 0.5293 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01104/0.3635, allocations: 3.946 MB / 0.5332 GB, free: 8.125 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00439/0.3679, allocations: 3.088 MB / 0.5362 GB, free: 6.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002402/0.3704, allocations: 1.971 MB / 0.5381 GB, free: 5.656 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002121/0.3725, allocations: 1.45 MB / 0.5395 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002077/0.3746, allocations: 1.654 MB / 0.5411 GB, free: 3.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004476/0.3751, allocations: 295 kB / 0.5414 GB, free: 3.891 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01104/0.3861, allocations: 3.135 MB / 0.5445 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007927/0.3869, allocations: 0.6983 MB / 0.5452 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001641/0.3886, allocations: 1.432 MB / 0.5466 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01341/0.402, allocations: 6.345 MB / 0.5527 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.4021, allocations: 0 / 0.5527 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4021, allocations: 0 / 0.5527 GB, free: 11.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.501e-05/0.4021, allocations: 0 / 0.5527 GB, free: 11.48 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.006069/0.4082, allocations: 3.33 MB / 0.556 GB, free: 8.105 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.4083, allocations: 12.03 kB / 0.556 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00228/0.4106, allocations: 0.5681 MB / 0.5566 GB, free: 7.527 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002167/0.4127, allocations: 1.412 MB / 0.5579 GB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002065/0.413, allocations: 266.4 kB / 0.5582 GB, free: 5.793 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003732/0.4133, allocations: 247.8 kB / 0.5584 GB, free: 5.551 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004702/0.418, allocations: 3.031 MB / 0.5614 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.078e-05/0.4181, allocations: 6.766 kB / 0.5614 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002315/0.4183, allocations: 102.6 kB / 0.5615 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-05/0.4184, allocations: 60 kB / 0.5616 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005271/0.4237, allocations: 3.599 MB / 0.5651 GB, free: 14.66 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.01513/0.4388, allocations: 10.41 MB / 0.5752 GB, free: 3.906 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002872/0.4417, allocations: 2.251 MB / 0.5774 GB, free: 1.547 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001534/0.4433, allocations: 1.124 MB / 0.5785 GB, free: 424 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0115/0.4548, allocations: 8.744 MB / 0.5871 GB, free: 6.824 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.4548, allocations: 47.88 kB / 0.5871 GB, free: 6.77 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001022/0.4558, allocations: 252.6 kB / 0.5874 GB, free: 6.523 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 3.647e-06/0.4559, allocations: 0 / 0.5874 GB, free: 6.523 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.03445/0.4903, allocations: 9.716 MB / 0.5968 GB, free: 12.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.348e-05/0.4904, allocations: 128.8 kB / 0.597 GB, free: 12.64 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001962/0.4924, allocations: 1.454 MB / 0.5984 GB, free: 11.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002307/0.4926, allocations: 57.7 kB / 0.5984 GB, free: 11.12 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007561/0.4934, allocations: 1.153 MB / 0.5996 GB, free: 9.953 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006063/0.494, allocations: 0.6317 MB / 0.6002 GB, free: 9.312 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008091/0.4948, allocations: 0.5129 MB / 0.6007 GB, free: 8.793 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.326e-05/0.4949, allocations: 305.1 kB / 0.601 GB, free: 8.492 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001651/0.4966, allocations: 0.9448 MB / 0.6019 GB, free: 7.547 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002336/0.4989, allocations: 1.893 MB / 0.6037 GB, free: 5.242 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004119/0.5031, allocations: 2.995 MB / 0.6067 GB, free: 1.883 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-05/0.5031, allocations: 15.94 kB / 0.6067 GB, free: 1.867 MB / 446.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01014/0.5133, allocations: 3.887 MB / 0.6105 GB, free: 13.99 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.516e-05/0.5133, allocations: 23.94 kB / 0.6105 GB, free: 13.97 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.767e-05/0.5134, allocations: 34.66 kB / 0.6105 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005188/0.5186, allocations: 1.173 MB / 0.6117 GB, free: 12.77 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002109/0.5207, allocations: 0.5772 MB / 0.6123 GB, free: 12.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009653/0.5304, allocations: 7.514 MB / 0.6196 GB, free: 4.266 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002095/0.5325, allocations: 110.5 kB / 0.6197 GB, free: 4.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004776/0.533, allocations: 155.9 kB / 0.6198 GB, free: 4.008 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.001187/0.5342, allocations: 487.5 kB / 0.6203 GB, free: 3.523 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005058/0.5347, allocations: 173.8 kB / 0.6205 GB, free: 3.352 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009432/0.5441, allocations: 3.26 MB / 0.6237 GB, free: 164 kB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.02e-05/0.5442, allocations: 20 kB / 0.6237 GB, free: 144 kB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/0.5442, allocations: 4 kB / 0.6237 GB, free: 140 kB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.385e-05/0.5443, allocations: 10.73 kB / 0.6237 GB, free: 132 kB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01319/0.5575, allocations: 5.443 MB / 0.629 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/0.5575, allocations: 4 kB / 0.629 GB, free: 10.59 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/0.5588, allocations: 306.2 kB / 0.6293 GB, free: 10.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004798/0.5636, allocations: 1.047 MB / 0.6303 GB, free: 9.258 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002035/0.5638, allocations: 67.95 kB / 0.6304 GB, free: 9.191 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008075/0.5719, allocations: 6.801 MB / 0.637 GB, free: 1.98 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.5719, allocations: 7.938 kB / 0.637 GB, free: 1.973 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009999/0.5819, allocations: 4.139 MB / 0.6411 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004519/0.5824, allocations: 238.8 kB / 0.6413 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004111/0.5828, allocations: 40 kB / 0.6413 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.5841, allocations: 47.92 kB / 0.6414 GB, free: 13.44 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003949/0.5845, allocations: 177.6 kB / 0.6416 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000178/0.5847, allocations: 83.95 kB / 0.6416 GB, free: 13.18 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001217/0.5859, allocations: 0.9546 MB / 0.6426 GB, free: 12.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5859, allocations: 0 / 0.6426 GB, free: 12.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003678/0.5896, allocations: 1.253 MB / 0.6438 GB, free: 10.97 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.002618/0.5922, allocations: 1.292 MB / 0.6451 GB, free: 9.68 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005704/0.598, allocations: 3.058 MB / 0.648 GB, free: 6.566 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.598, allocations: 4 kB / 0.648 GB, free: 6.562 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003/0.601, allocations: 1.626 MB / 0.6496 GB, free: 4.875 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/0.6029, allocations: 314.7 kB / 0.6499 GB, free: 4.594 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007805/0.6107, allocations: 4.082 MB / 0.6539 GB, free: 456 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001176/0.6119, allocations: 1.474 MB / 0.6554 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009579/0.6129, allocations: 361.6 kB / 0.6557 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of SimCode: time 7.11e-07/0.6129, allocations: 0 / 0.6557 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of Templates: time 0.2731/0.886, allocations: 80.52 MB / 0.7343 GB, free: 185.1 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)