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.001192/0.001192, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.196/1.196, allocations: 222.9 MB / 240.2 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1674/0.1674, allocations: 15.32 MB / 305.7 MB, free: 15.33 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 67.89 kB / 370.3 MB, free: 3.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08531/0.08649, allocations: 53.61 MB / 423.9 MB, free: 14.28 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.2882/0.3747, allocations: 30.59 MB / 454.5 MB, free: 38.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02204/0.3968, allocations: 28.88 MB / 483.4 MB, free: 23.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001213/0.398, allocations: 27.75 kB / 483.4 MB, free: 23.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00146/0.3995, allocations: 0.6935 MB / 484.1 MB, free: 23.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004303/0.4038, allocations: 2.219 MB / 486.4 MB, free: 21.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008603/0.4124, allocations: 3.927 MB / 490.3 MB, free: 19.67 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00284/0.4153, allocations: 3.07 MB / 493.4 MB, free: 18.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002045/0.4173, allocations: 1.962 MB / 495.3 MB, free: 17.26 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001567/0.4189, allocations: 1.448 MB / 496.8 MB, free: 16.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001509/0.4204, allocations: 1.653 MB / 498.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00029/0.4207, allocations: 294.8 kB / 498.7 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007903/0.4286, allocations: 3.141 MB / 0.4901 GB, free: 15.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004986/0.4292, allocations: 0.6923 MB / 0.4908 GB, free: 14.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00167/0.4308, allocations: 1.434 MB / 0.4922 GB, free: 13.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01258/0.4434, allocations: 6.291 MB / 0.4983 GB, free: 8.215 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.4435, allocations: 0 / 0.4983 GB, free: 8.215 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4435, allocations: 0 / 0.4983 GB, free: 8.215 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001091/0.4436, allocations: 0 / 0.4983 GB, free: 8.215 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.006818/0.4504, allocations: 3.339 MB / 0.5016 GB, free: 5.172 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.4505, allocations: 12.03 kB / 0.5016 GB, free: 5.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002323/0.4528, allocations: 0.5646 MB / 0.5021 GB, free: 4.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001967/0.4548, allocations: 1.363 MB / 0.5035 GB, free: 3.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.4549, allocations: 272.3 kB / 0.5037 GB, free: 3.234 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003865/0.4553, allocations: 240.7 kB / 0.5039 GB, free: 3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003624/0.4589, allocations: 3.037 MB / 0.5069 GB, free: 460 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.818e-05/0.459, allocations: 6.188 kB / 0.5069 GB, free: 456 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002008/0.4592, allocations: 96 kB / 0.507 GB, free: 360 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.545e-05/0.4592, allocations: 60 kB / 0.5071 GB, free: 300 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004768/0.464, allocations: 3.608 MB / 0.5106 GB, free: 12.73 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.01304/0.4771, allocations: 10.49 MB / 0.5208 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002524/0.4796, allocations: 2.246 MB / 0.523 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001363/0.481, allocations: 1.121 MB / 0.5241 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01007/0.491, allocations: 8.751 MB / 0.5327 GB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.4911, allocations: 43.88 kB / 0.5327 GB, free: 4.723 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008987/0.492, allocations: 258 kB / 0.533 GB, free: 4.469 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 3.366e-06/0.492, allocations: 4 kB / 0.533 GB, free: 4.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.03168/0.5237, allocations: 9.7 MB / 0.5424 GB, free: 10.64 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/0.5238, allocations: 124.8 kB / 0.5426 GB, free: 10.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001541/0.5253, allocations: 1.462 MB / 0.544 GB, free: 9.023 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.5254, allocations: 53.7 kB / 0.544 GB, free: 8.965 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006268/0.5261, allocations: 1.151 MB / 0.5452 GB, free: 7.797 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004532/0.5265, allocations: 0.6357 MB / 0.5458 GB, free: 7.152 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006573/0.5272, allocations: 0.5129 MB / 0.5463 GB, free: 6.633 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.202e-05/0.5273, allocations: 305.1 kB / 0.5466 GB, free: 6.332 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.5287, allocations: 0.9461 MB / 0.5475 GB, free: 5.383 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001934/0.5306, allocations: 1.898 MB / 0.5494 GB, free: 3.043 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00352/0.5342, allocations: 2.992 MB / 0.5523 GB, free: 15.61 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-05/0.5342, allocations: 8 kB / 0.5523 GB, free: 15.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.008917/0.5431, allocations: 3.896 MB / 0.5561 GB, free: 11.68 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.5432, allocations: 20 kB / 0.5561 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-05/0.5432, allocations: 31.98 kB / 0.5561 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004764/0.548, allocations: 1.189 MB / 0.5573 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001734/0.5497, allocations: 0.5811 MB / 0.5579 GB, free: 9.848 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008733/0.5585, allocations: 7.506 MB / 0.5652 GB, free: 1.895 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/0.5602, allocations: 115.8 kB / 0.5653 GB, free: 1.781 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002884/0.5605, allocations: 159.9 kB / 0.5655 GB, free: 1.625 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.0008932/0.5614, allocations: 485 kB / 0.5659 GB, free: 1.141 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004081/0.5618, allocations: 177.8 kB / 0.5661 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009193/0.571, allocations: 3.246 MB / 0.5693 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/0.571, allocations: 24 kB / 0.5693 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.571, allocations: 4 kB / 0.5693 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/0.5711, allocations: 7.969 kB / 0.5693 GB, free: 13.65 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01143/0.5825, allocations: 5.456 MB / 0.5746 GB, free: 8.098 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.5825, allocations: 4 kB / 0.5746 GB, free: 8.094 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.5836, allocations: 303.6 kB / 0.5749 GB, free: 7.797 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004361/0.588, allocations: 1.049 MB / 0.5759 GB, free: 6.734 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001495/0.5882, allocations: 79.88 kB / 0.576 GB, free: 6.656 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007099/0.5953, allocations: 6.81 MB / 0.5827 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5953, allocations: 0 / 0.5827 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008738/0.604, allocations: 4.137 MB / 0.5867 GB, free: 11.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003441/0.6044, allocations: 226.9 kB / 0.5869 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002738/0.6047, allocations: 35.98 kB / 0.587 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.6057, allocations: 40 kB / 0.587 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000345/0.6061, allocations: 181.6 kB / 0.5872 GB, free: 10.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/0.6062, allocations: 91.89 kB / 0.5873 GB, free: 10.62 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001048/0.6073, allocations: 0.9546 MB / 0.5882 GB, free: 9.664 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6073, allocations: 0 / 0.5882 GB, free: 9.664 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003514/0.6108, allocations: 1.245 MB / 0.5894 GB, free: 8.418 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.002991/0.6138, allocations: 1.292 MB / 0.5907 GB, free: 7.113 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006904/0.6207, allocations: 3.326 MB / 0.5939 GB, free: 3.734 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.6207, allocations: 0 / 0.5939 GB, free: 3.734 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002522/0.6232, allocations: 1.635 MB / 0.5955 GB, free: 2.039 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001471/0.6247, allocations: 316.9 kB / 0.5958 GB, free: 1.734 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1624/0.7872, allocations: 4.07 MB / 0.5998 GB, free: 129.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007479/0.788, allocations: 1.486 MB / 0.6012 GB, free: 128.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001724/0.7897, allocations: 448.8 kB / 0.6017 GB, free: 128.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005296/0.7902, allocations: 286 kB / 0.6019 GB, free: 128.8 MB / 462.1 MB Notification: Performance of SimCode: time 7.82e-07/0.7902, allocations: 0 / 0.6019 GB, free: 128.8 MB / 462.1 MB Notification: Performance of Templates: time 0.06683/0.8571, allocations: 46.33 MB / 0.6472 GB, free: 114.8 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)