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.006642/0.006648, allocations: 103.8 kB / 15.74 MB, free: 6.445 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.001622/0.001622, allocations: 196.2 kB / 16.67 MB, free: 6.352 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1856/0.1856, allocations: 15.32 MB / 305.9 MB, free: 15.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 68.14 kB / 424.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2246, allocations: 53.6 MB / 478.3 MB, free: 25.67 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.03243/0.2571, allocations: 30.69 MB / 0.4971 GB, free: 4.023 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03007/0.2872, allocations: 28.88 MB / 0.5253 GB, free: 7.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001746/0.2889, allocations: 31.81 kB / 0.5253 GB, free: 6.996 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001921/0.2909, allocations: 0.6941 MB / 0.526 GB, free: 6.297 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006055/0.297, allocations: 2.239 MB / 0.5282 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009368/0.3063, allocations: 3.949 MB / 0.532 GB, free: 72 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004161/0.3105, allocations: 3.085 MB / 0.5351 GB, free: 12.97 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002325/0.3129, allocations: 1.971 MB / 0.537 GB, free: 10.96 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001732/0.3146, allocations: 1.453 MB / 0.5384 GB, free: 9.5 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002124/0.3168, allocations: 1.654 MB / 0.54 GB, free: 7.84 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005828/0.3174, allocations: 292 kB / 0.5403 GB, free: 7.555 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008706/0.3261, allocations: 3.14 MB / 0.5434 GB, free: 4.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008801/0.327, allocations: 0.6972 MB / 0.544 GB, free: 3.711 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001675/0.3287, allocations: 1.431 MB / 0.5454 GB, free: 2.273 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01297/0.3417, allocations: 6.37 MB / 0.5517 GB, free: 11.88 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3417, allocations: 0 / 0.5517 GB, free: 11.88 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3417, allocations: 0 / 0.5517 GB, free: 11.88 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.857e-05/0.3418, allocations: 0 / 0.5517 GB, free: 11.88 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.006872/0.3487, allocations: 3.414 MB / 0.555 GB, free: 8.395 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.3488, allocations: 8.031 kB / 0.555 GB, free: 8.387 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003896/0.3492, allocations: 337.7 kB / 0.5553 GB, free: 8.047 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002387/0.3516, allocations: 0.5804 MB / 0.5559 GB, free: 7.465 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002401/0.354, allocations: 1.416 MB / 0.5573 GB, free: 6 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002095/0.3542, allocations: 266 kB / 0.5575 GB, free: 5.719 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004041/0.3546, allocations: 243.9 kB / 0.5578 GB, free: 5.48 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004756/0.3594, allocations: 3.041 MB / 0.5607 GB, free: 2.332 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.751e-05/0.3594, allocations: 3.938 kB / 0.5607 GB, free: 2.328 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002482/0.3597, allocations: 96 kB / 0.5608 GB, free: 2.234 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.253e-05/0.3597, allocations: 64 kB / 0.5609 GB, free: 2.172 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005494/0.3652, allocations: 3.599 MB / 0.5644 GB, free: 14.57 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.01582/0.3811, allocations: 10.44 MB / 0.5746 GB, free: 3.754 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003017/0.3841, allocations: 2.257 MB / 0.5768 GB, free: 1.375 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001622/0.3858, allocations: 1.109 MB / 0.5779 GB, free: 260 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01262/0.3984, allocations: 8.759 MB / 0.5864 GB, free: 6.641 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.3985, allocations: 47.81 kB / 0.5865 GB, free: 6.586 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001109/0.3996, allocations: 262.5 kB / 0.5867 GB, free: 6.328 MB / 462.1 MB Notification: Performance of pre-optimization done (n=134): time 6.903e-06/0.3996, allocations: 8 kB / 0.5867 GB, free: 6.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.03572/0.4353, allocations: 9.784 MB / 0.5963 GB, free: 12.43 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.045e-05/0.4354, allocations: 120.8 kB / 0.5964 GB, free: 12.28 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001786/0.4372, allocations: 1.462 MB / 0.5978 GB, free: 10.81 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001467/0.4374, allocations: 61.77 kB / 0.5979 GB, free: 10.74 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007693/0.4382, allocations: 1.19 MB / 0.5991 GB, free: 9.539 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005313/0.4387, allocations: 0.6585 MB / 0.5997 GB, free: 8.875 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007621/0.4395, allocations: 0.5209 MB / 0.6002 GB, free: 8.348 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.255e-05/0.4396, allocations: 305.1 kB / 0.6005 GB, free: 8.047 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001604/0.4412, allocations: 0.9462 MB / 0.6014 GB, free: 7.098 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002286/0.4435, allocations: 1.898 MB / 0.6033 GB, free: 4.762 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004179/0.4477, allocations: 2.992 MB / 0.6062 GB, free: 1.336 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-05/0.4477, allocations: 8 kB / 0.6062 GB, free: 1.328 MB / 478.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.2036/0.6513, allocations: 3.899 MB / 0.61 GB, free: 114.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.436e-05/0.6514, allocations: 22.69 kB / 0.61 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-05/0.6515, allocations: 31.36 kB / 0.6101 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005477/0.657, allocations: 1.173 MB / 0.6112 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002197/0.6592, allocations: 0.5823 MB / 0.6118 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008788/0.668, allocations: 7.516 MB / 0.6191 GB, free: 108.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002081/0.6701, allocations: 113.7 kB / 0.6192 GB, free: 108.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003435/0.6705, allocations: 164.8 kB / 0.6194 GB, free: 108.6 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.0009098/0.6714, allocations: 481.5 kB / 0.6198 GB, free: 108.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003769/0.6718, allocations: 190.5 kB / 0.62 GB, free: 108.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008937/0.6807, allocations: 3.242 MB / 0.6232 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.6807, allocations: 18.69 kB / 0.6232 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.6808, allocations: 9.719 kB / 0.6232 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.775e-05/0.6808, allocations: 7.828 kB / 0.6232 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01189/0.6927, allocations: 5.442 MB / 0.6285 GB, free: 104.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.6927, allocations: 5 kB / 0.6285 GB, free: 104.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/0.694, allocations: 300.2 kB / 0.6288 GB, free: 104.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004651/0.6986, allocations: 1.053 MB / 0.6299 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001598/0.6988, allocations: 74.03 kB / 0.6299 GB, free: 104.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006679/0.7055, allocations: 6.806 MB / 0.6366 GB, free: 98.41 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.7055, allocations: 3.625 kB / 0.6366 GB, free: 98.41 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009003/0.7145, allocations: 4.146 MB / 0.6406 GB, free: 96.01 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003684/0.7149, allocations: 244.6 kB / 0.6409 GB, free: 95.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002512/0.7152, allocations: 44.33 kB / 0.6409 GB, free: 95.78 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.7162, allocations: 43.98 kB / 0.6409 GB, free: 95.75 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003421/0.7166, allocations: 180.1 kB / 0.6411 GB, free: 95.66 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/0.7167, allocations: 84.92 kB / 0.6412 GB, free: 95.63 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001047/0.7178, allocations: 0.9516 MB / 0.6421 GB, free: 95.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 2e-07/0.7178, allocations: 1.031 kB / 0.6421 GB, free: 95.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003415/0.7212, allocations: 1.261 MB / 0.6434 GB, free: 94.96 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.01035/0.7316, allocations: 5.911 MB / 0.6491 GB, free: 91.84 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004832/0.7364, allocations: 3.06 MB / 0.6521 GB, free: 90.14 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.7365, allocations: 2.688 kB / 0.6521 GB, free: 90.14 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002384/0.7388, allocations: 1.618 MB / 0.6537 GB, free: 89.11 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/0.7404, allocations: 312.7 kB / 0.654 GB, free: 88.95 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0299/0.7704, allocations: 19.15 MB / 0.6727 GB, free: 69.91 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006921/0.7711, allocations: 1.487 MB / 0.6742 GB, free: 68.41 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001469/0.7726, allocations: 451.5 kB / 0.6746 GB, free: 68.11 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001029/0.7736, allocations: 1.007 MB / 0.6756 GB, free: 67.11 MB / 478.1 MB Notification: Performance of SimCode: time 8.12e-07/0.7736, allocations: 2.656 kB / 0.6756 GB, free: 67.11 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08795/0.8616, allocations: 63.83 MB / 0.7379 GB, free: 3.961 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 32.76/33.62, allocations: 4 kB / 0.7379 GB, free: 3.957 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)