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.002291/0.002291, allocations: 108 kB / 15.6 MB, free: 132 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.002138/0.002138, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.928/2.928, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.5222/0.5222, allocations: 15.32 MB / 305.7 MB, free: 15.26 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002311, allocations: 59.91 kB / 370.4 MB, free: 3.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2283, allocations: 53.61 MB / 424.1 MB, free: 14.18 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.8227/1.051, allocations: 30.61 MB / 454.7 MB, free: 38.9 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05055/1.102, allocations: 28.87 MB / 483.5 MB, free: 23.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003214/1.105, allocations: 28.19 kB / 483.6 MB, free: 23.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0036/1.109, allocations: 0.6954 MB / 484.3 MB, free: 23.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01201/1.121, allocations: 2.223 MB / 486.5 MB, free: 22.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02392/1.145, allocations: 3.918 MB / 490.4 MB, free: 19.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0092/1.154, allocations: 3.068 MB / 493.5 MB, free: 18.4 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005567/1.16, allocations: 1.966 MB / 495.4 MB, free: 17.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00711/1.167, allocations: 1.451 MB / 496.9 MB, free: 16.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005285/1.172, allocations: 1.65 MB / 498.5 MB, free: 16.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003763/1.176, allocations: 296.5 kB / 498.8 MB, free: 16.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02142/1.197, allocations: 3.137 MB / 0.4902 GB, free: 15.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002136/1.2, allocations: 0.6871 MB / 0.4909 GB, free: 14.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004237/1.204, allocations: 1.442 MB / 0.4923 GB, free: 13.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02481/1.229, allocations: 6.295 MB / 0.4984 GB, free: 8.355 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.31e-05/1.229, allocations: 0 / 0.4984 GB, free: 8.355 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.895e-06/1.229, allocations: 0 / 0.4984 GB, free: 8.355 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001766/1.229, allocations: 4 kB / 0.4984 GB, free: 8.352 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.01386/1.243, allocations: 3.33 MB / 0.5017 GB, free: 5.316 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.719e-05/1.243, allocations: 12.03 kB / 0.5017 GB, free: 5.305 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001652/1.245, allocations: 331.1 kB / 0.502 GB, free: 5.027 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008945/1.254, allocations: 0.5647 MB / 0.5026 GB, free: 4.547 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005025/1.259, allocations: 1.368 MB / 0.5039 GB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004868/1.259, allocations: 272.2 kB / 0.5042 GB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001691/1.261, allocations: 239.9 kB / 0.5044 GB, free: 2.863 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01677/1.278, allocations: 3.041 MB / 0.5074 GB, free: 88 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002105/1.278, allocations: 0 / 0.5074 GB, free: 88 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001398/1.279, allocations: 96.05 kB / 0.5074 GB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001133/1.28, allocations: 63.94 kB / 0.5075 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01451/1.294, allocations: 3.607 MB / 0.511 GB, free: 12.32 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.03551/1.33, allocations: 10.49 MB / 0.5213 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006908/1.337, allocations: 2.253 MB / 0.5235 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00333/1.34, allocations: 1.117 MB / 0.5246 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02539/1.365, allocations: 8.743 MB / 0.5331 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.164e-05/1.366, allocations: 51.81 kB / 0.5331 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00189/1.367, allocations: 262 kB / 0.5334 GB, free: 4.059 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 1.084e-05/1.367, allocations: 0 / 0.5334 GB, free: 4.059 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.06032/1.428, allocations: 9.697 MB / 0.5429 GB, free: 10.24 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/1.428, allocations: 124.8 kB / 0.543 GB, free: 10.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003405/1.431, allocations: 1.462 MB / 0.5444 GB, free: 8.621 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005342/1.432, allocations: 57.7 kB / 0.5445 GB, free: 8.559 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001302/1.433, allocations: 1.151 MB / 0.5456 GB, free: 7.391 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001775/1.435, allocations: 0.6318 MB / 0.5462 GB, free: 6.75 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002776/1.438, allocations: 0.5129 MB / 0.5467 GB, free: 6.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002124/1.438, allocations: 305.1 kB / 0.547 GB, free: 5.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003405/1.442, allocations: 0.9384 MB / 0.5479 GB, free: 4.988 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004571/1.446, allocations: 1.902 MB / 0.5498 GB, free: 2.645 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007573/1.454, allocations: 2.992 MB / 0.5527 GB, free: 15.22 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.332e-05/1.454, allocations: 12 kB / 0.5527 GB, free: 15.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01827/1.472, allocations: 3.9 MB / 0.5565 GB, free: 11.28 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.802e-05/1.472, allocations: 20 kB / 0.5565 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.529e-05/1.472, allocations: 35.94 kB / 0.5566 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009643/1.482, allocations: 1.178 MB / 0.5577 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005012/1.487, allocations: 0.5772 MB / 0.5583 GB, free: 9.457 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02881/1.516, allocations: 7.514 MB / 0.5656 GB, free: 1.492 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004638/1.521, allocations: 115.8 kB / 0.5657 GB, free: 1.379 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009911/1.522, allocations: 159.9 kB / 0.5659 GB, free: 1.223 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.00324/1.525, allocations: 488.8 kB / 0.5664 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001282/1.526, allocations: 169.8 kB / 0.5665 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02125/1.548, allocations: 3.249 MB / 0.5697 GB, free: 13.28 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.838e-05/1.548, allocations: 24 kB / 0.5697 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.562e-05/1.548, allocations: 4 kB / 0.5697 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001135/1.548, allocations: 11.95 kB / 0.5697 GB, free: 13.24 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03566/1.584, allocations: 5.463 MB / 0.5751 GB, free: 7.684 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.765e-05/1.584, allocations: 4 kB / 0.5751 GB, free: 7.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003319/1.587, allocations: 295.7 kB / 0.5753 GB, free: 7.391 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01007/1.597, allocations: 1.049 MB / 0.5764 GB, free: 6.328 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008284/1.598, allocations: 71.89 kB / 0.5764 GB, free: 6.258 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02111/1.619, allocations: 6.81 MB / 0.5831 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.26e-05/1.619, allocations: 4 kB / 0.5831 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02182/1.641, allocations: 4.133 MB / 0.5871 GB, free: 10.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001032/1.642, allocations: 234.9 kB / 0.5874 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001145/1.643, allocations: 36 kB / 0.5874 GB, free: 10.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002869/1.646, allocations: 43.98 kB / 0.5874 GB, free: 10.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00108/1.648, allocations: 185.6 kB / 0.5876 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004861/1.648, allocations: 87.95 kB / 0.5877 GB, free: 10.21 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003151/1.651, allocations: 0.9507 MB / 0.5886 GB, free: 9.258 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.21e-07/1.651, allocations: 0 / 0.5886 GB, free: 9.258 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009172/1.66, allocations: 1.249 MB / 0.5898 GB, free: 8.008 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.0324/1.693, allocations: 5.878 MB / 0.5956 GB, free: 2.051 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.3443/2.037, allocations: 3.316 MB / 0.5988 GB, free: 132 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/2.037, allocations: 0 / 0.5988 GB, free: 132 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005695/2.043, allocations: 1.625 MB / 0.6004 GB, free: 131.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004345/2.047, allocations: 312.4 kB / 0.6007 GB, free: 131.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07365/2.121, allocations: 20.45 MB / 0.6207 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002331/2.124, allocations: 1.477 MB / 0.6221 GB, free: 120.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004849/2.128, allocations: 457.9 kB / 0.6226 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002949/2.131, allocations: 1.012 MB / 0.6235 GB, free: 120 MB / 462.1 MB Notification: Performance of SimCode: time 1.643e-06/2.131, allocations: 0 / 0.6235 GB, free: 120 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4172/2.549, allocations: 63.13 MB / 0.6852 GB, free: 78.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 28.37/30.92, allocations: 7.938 kB / 0.6852 GB, free: 78.39 MB / 462.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)