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: "" <> buildModelFMU(Chemical.Examples.ClimateChange.ElectrolysisMethanation,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.ElectrolysisMethanation,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007183/0.007183, allocations: 101.4 kB / 15.73 MB, free: 6.043 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.001877/0.001878, allocations: 202.1 kB / 16.68 MB, free: 5.965 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1984/0.1984, allocations: 15.32 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 71.89 kB / 424.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2444, allocations: 53.61 MB / 478.3 MB, free: 25.53 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.03351/0.2779, allocations: 31.14 MB / 0.4975 GB, free: 3.574 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03448/0.3124, allocations: 28.9 MB / 0.5258 GB, free: 6.566 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002416/0.3149, allocations: 27.88 kB / 0.5258 GB, free: 6.539 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00215/0.3171, allocations: 0.6824 MB / 0.5264 GB, free: 5.852 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006999/0.3241, allocations: 2.235 MB / 0.5286 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01179/0.3359, allocations: 3.914 MB / 0.5325 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006943/0.3429, allocations: 3.082 MB / 0.5355 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002997/0.3459, allocations: 1.967 MB / 0.5374 GB, free: 10.56 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002062/0.348, allocations: 1.453 MB / 0.5388 GB, free: 9.102 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002528/0.3506, allocations: 1.651 MB / 0.5404 GB, free: 7.445 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005908/0.3512, allocations: 292 kB / 0.5407 GB, free: 7.16 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009776/0.361, allocations: 3.152 MB / 0.5438 GB, free: 4.004 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001085/0.3621, allocations: 0.6816 MB / 0.5444 GB, free: 3.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002012/0.3641, allocations: 1.439 MB / 0.5458 GB, free: 1.875 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01501/0.3791, allocations: 6.373 MB / 0.5521 GB, free: 11.48 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.3792, allocations: 0 / 0.5521 GB, free: 11.48 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3792, allocations: 0 / 0.5521 GB, free: 11.48 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001042/0.3793, allocations: 0 / 0.5521 GB, free: 11.48 MB / 430.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.007396/0.3867, allocations: 3.417 MB / 0.5554 GB, free: 7.988 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/0.3868, allocations: 12.03 kB / 0.5554 GB, free: 7.977 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004176/0.3872, allocations: 329.6 kB / 0.5557 GB, free: 7.645 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002454/0.3897, allocations: 0.5842 MB / 0.5563 GB, free: 7.059 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002519/0.3922, allocations: 1.412 MB / 0.5577 GB, free: 5.598 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002571/0.3925, allocations: 270 kB / 0.5579 GB, free: 5.312 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003918/0.3929, allocations: 240 kB / 0.5582 GB, free: 5.078 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005325/0.3982, allocations: 3.029 MB / 0.5611 GB, free: 1.941 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.554e-05/0.3983, allocations: 3.938 kB / 0.5611 GB, free: 1.938 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002471/0.3985, allocations: 96 kB / 0.5612 GB, free: 1.844 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.915e-05/0.3986, allocations: 64 kB / 0.5613 GB, free: 1.781 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006219/0.4048, allocations: 3.607 MB / 0.5648 GB, free: 14.17 MB / 446.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.01751/0.4224, allocations: 10.43 MB / 0.575 GB, free: 3.367 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0034/0.4258, allocations: 2.269 MB / 0.5772 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001766/0.4276, allocations: 1.106 MB / 0.5783 GB, free: 15.86 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01328/0.4409, allocations: 8.767 MB / 0.5868 GB, free: 6.238 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.441, allocations: 43.88 kB / 0.5869 GB, free: 6.188 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001074/0.442, allocations: 270.5 kB / 0.5871 GB, free: 5.922 MB / 462.1 MB Notification: Performance of pre-optimization done (n=134): time 4.288e-06/0.4421, allocations: 4 kB / 0.5871 GB, free: 5.918 MB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.03516/0.4772, allocations: 9.78 MB / 0.5967 GB, free: 12.03 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.527e-05/0.4774, allocations: 120.8 kB / 0.5968 GB, free: 11.88 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001991/0.4794, allocations: 1.466 MB / 0.5982 GB, free: 10.41 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002003/0.4796, allocations: 61.7 kB / 0.5983 GB, free: 10.34 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009671/0.4805, allocations: 1.186 MB / 0.5995 GB, free: 9.141 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006415/0.4812, allocations: 0.6585 MB / 0.6001 GB, free: 8.477 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008732/0.4821, allocations: 0.517 MB / 0.6006 GB, free: 7.953 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.4822, allocations: 309 kB / 0.6009 GB, free: 7.648 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001698/0.4839, allocations: 0.9423 MB / 0.6018 GB, free: 6.703 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002588/0.4865, allocations: 1.89 MB / 0.6037 GB, free: 4.375 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004562/0.4911, allocations: 2.996 MB / 0.6066 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.041e-05/0.4911, allocations: 8 kB / 0.6066 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.2088/0.6999, allocations: 3.897 MB / 0.6104 GB, free: 114.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.301e-05/0.7, allocations: 22.22 kB / 0.6104 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.808e-05/0.7001, allocations: 31.72 kB / 0.6105 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005458/0.7055, allocations: 1.182 MB / 0.6116 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00238/0.708, allocations: 0.5834 MB / 0.6122 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009266/0.7172, allocations: 7.513 MB / 0.6195 GB, free: 108.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002291/0.7196, allocations: 112.8 kB / 0.6196 GB, free: 108.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003078/0.7199, allocations: 160.3 kB / 0.6198 GB, free: 108.3 MB / 478.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.0009366/0.7208, allocations: 485.4 kB / 0.6202 GB, free: 108 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004036/0.7212, allocations: 188.1 kB / 0.6204 GB, free: 108 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008966/0.7302, allocations: 3.256 MB / 0.6236 GB, free: 106.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.7303, allocations: 19.72 kB / 0.6236 GB, free: 106.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.7303, allocations: 0 / 0.6236 GB, free: 106.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-05/0.7303, allocations: 11.38 kB / 0.6236 GB, free: 106.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/0.7418, allocations: 5.441 MB / 0.6289 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.7419, allocations: 6.031 kB / 0.6289 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/0.7431, allocations: 301.6 kB / 0.6292 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004557/0.7477, allocations: 1.054 MB / 0.6303 GB, free: 104.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001864/0.7479, allocations: 70.08 kB / 0.6303 GB, free: 104.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006751/0.7546, allocations: 6.805 MB / 0.637 GB, free: 98.35 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.7546, allocations: 5.562 kB / 0.637 GB, free: 98.35 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009157/0.7638, allocations: 4.147 MB / 0.641 GB, free: 95.96 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004514/0.7643, allocations: 244.2 kB / 0.6413 GB, free: 95.75 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/0.7645, allocations: 38.97 kB / 0.6413 GB, free: 95.72 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.7656, allocations: 42.98 kB / 0.6413 GB, free: 95.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003962/0.766, allocations: 181 kB / 0.6415 GB, free: 95.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001574/0.7661, allocations: 87.44 kB / 0.6416 GB, free: 95.57 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00109/0.7672, allocations: 0.9492 MB / 0.6425 GB, free: 95.05 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7672, allocations: 0 / 0.6425 GB, free: 95.05 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003406/0.7706, allocations: 1.268 MB / 0.6438 GB, free: 94.91 MB / 478.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.01076/0.7814, allocations: 5.899 MB / 0.6495 GB, free: 91.79 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005211/0.7867, allocations: 3.061 MB / 0.6525 GB, free: 90.09 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.7867, allocations: 0 / 0.6525 GB, free: 90.09 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002343/0.7891, allocations: 1.629 MB / 0.6541 GB, free: 89.04 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001646/0.7907, allocations: 315.4 kB / 0.6544 GB, free: 88.88 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02924/0.82, allocations: 19.16 MB / 0.6731 GB, free: 69.48 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007124/0.8207, allocations: 1.475 MB / 0.6746 GB, free: 68 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001414/0.8222, allocations: 461.7 kB / 0.675 GB, free: 67.68 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001013/0.8232, allocations: 1.009 MB / 0.676 GB, free: 66.68 MB / 478.1 MB Notification: Performance of SimCode: time 6.51e-07/0.8232, allocations: 0 / 0.676 GB, free: 66.68 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09853/0.9217, allocations: 63.82 MB / 0.7383 GB, free: 3.578 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 32.69/33.61, allocations: 12.05 kB / 0.7383 GB, free: 3.566 MB / 478.1 MB (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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation_res.csv --start-time 0 --stop-time 0.0001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-08 Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation.fmu > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1)