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.007036/0.007036, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001376/0.001376, allocations: 196.5 kB / 16.67 MB, free: 5.977 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1932/0.1932, allocations: 15.32 MB / 305.8 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 59.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2499, allocations: 53.61 MB / 478.3 MB, free: 25.62 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.03703/0.287, allocations: 30.61 MB / 0.497 GB, free: 4.109 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03261/0.3196, allocations: 28.89 MB / 0.5252 GB, free: 7.105 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001834/0.3215, allocations: 27.88 kB / 0.5252 GB, free: 7.078 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002381/0.3239, allocations: 0.6862 MB / 0.5259 GB, free: 6.387 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006475/0.3304, allocations: 2.223 MB / 0.5281 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01012/0.3406, allocations: 3.922 MB / 0.5319 GB, free: 208 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004863/0.3454, allocations: 3.085 MB / 0.5349 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002749/0.3482, allocations: 1.971 MB / 0.5369 GB, free: 11.09 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001921/0.3502, allocations: 1.453 MB / 0.5383 GB, free: 9.633 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002358/0.3525, allocations: 1.658 MB / 0.5399 GB, free: 7.969 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004799/0.353, allocations: 296 kB / 0.5402 GB, free: 7.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008803/0.3618, allocations: 3.14 MB / 0.5432 GB, free: 4.535 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008568/0.3627, allocations: 0.6855 MB / 0.5439 GB, free: 3.848 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001584/0.3643, allocations: 1.435 MB / 0.5453 GB, free: 2.406 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0121/0.3764, allocations: 6.341 MB / 0.5515 GB, free: 12.04 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.3765, allocations: 4 kB / 0.5515 GB, free: 12.04 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3765, allocations: 0 / 0.5515 GB, free: 12.04 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.723e-05/0.3766, allocations: 0 / 0.5515 GB, free: 12.04 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.006481/0.383, allocations: 3.339 MB / 0.5548 GB, free: 8.637 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.3831, allocations: 8.031 kB / 0.5548 GB, free: 8.629 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003668/0.3835, allocations: 329.7 kB / 0.5551 GB, free: 8.297 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002243/0.3857, allocations: 0.5634 MB / 0.5556 GB, free: 7.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002452/0.3882, allocations: 1.408 MB / 0.557 GB, free: 6.273 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002139/0.3884, allocations: 274 kB / 0.5573 GB, free: 5.984 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003971/0.3888, allocations: 243.9 kB / 0.5575 GB, free: 5.746 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0048/0.3936, allocations: 3.033 MB / 0.5605 GB, free: 2.605 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.741e-05/0.3937, allocations: 4 kB / 0.5605 GB, free: 2.602 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002244/0.3939, allocations: 96 kB / 0.5606 GB, free: 2.508 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.882e-05/0.394, allocations: 60 kB / 0.5606 GB, free: 2.449 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005579/0.3996, allocations: 3.599 MB / 0.5641 GB, free: 14.84 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.01673/0.4163, allocations: 10.41 MB / 0.5743 GB, free: 4.051 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003046/0.4194, allocations: 2.261 MB / 0.5765 GB, free: 1.668 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00164/0.4211, allocations: 1.113 MB / 0.5776 GB, free: 0.543 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01295/0.434, allocations: 8.739 MB / 0.5861 GB, free: 6.949 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/0.4341, allocations: 55.86 kB / 0.5862 GB, free: 6.887 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001153/0.4353, allocations: 258 kB / 0.5864 GB, free: 6.633 MB / 462.1 MB Notification: Performance of pre-optimization done (n=134): time 5.771e-06/0.4353, allocations: 0 / 0.5864 GB, free: 6.633 MB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.0353/0.4706, allocations: 9.708 MB / 0.5959 GB, free: 12.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.974e-05/0.4707, allocations: 128.8 kB / 0.596 GB, free: 12.65 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001814/0.4725, allocations: 1.462 MB / 0.5975 GB, free: 11.18 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002637/0.4728, allocations: 57.7 kB / 0.5975 GB, free: 11.12 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007524/0.4736, allocations: 1.143 MB / 0.5986 GB, free: 9.957 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005581/0.4741, allocations: 0.6317 MB / 0.5993 GB, free: 9.316 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007308/0.4749, allocations: 0.5168 MB / 0.5998 GB, free: 8.793 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.475, allocations: 305.1 kB / 0.6001 GB, free: 8.492 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/0.4766, allocations: 0.9384 MB / 0.601 GB, free: 7.551 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002242/0.4788, allocations: 1.906 MB / 0.6028 GB, free: 5.207 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004208/0.483, allocations: 2.984 MB / 0.6057 GB, free: 1.789 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.349e-05/0.4831, allocations: 16 kB / 0.6058 GB, free: 1.773 MB / 478.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.2105/0.6936, allocations: 3.888 MB / 0.6096 GB, free: 114.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.464e-05/0.6937, allocations: 23.02 kB / 0.6096 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-05/0.6938, allocations: 32.03 kB / 0.6096 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005407/0.6992, allocations: 1.177 MB / 0.6108 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002265/0.7015, allocations: 0.5789 MB / 0.6113 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009112/0.7106, allocations: 7.506 MB / 0.6187 GB, free: 108.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/0.7127, allocations: 115 kB / 0.6188 GB, free: 108.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003838/0.7131, allocations: 156.3 kB / 0.6189 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.001039/0.7142, allocations: 490.9 kB / 0.6194 GB, free: 108.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004467/0.7146, allocations: 182.6 kB / 0.6196 GB, free: 108.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009188/0.7238, allocations: 3.251 MB / 0.6227 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.263e-05/0.7239, allocations: 18.66 kB / 0.6227 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.7239, allocations: 4 kB / 0.6228 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.375e-05/0.7239, allocations: 13.16 kB / 0.6228 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01243/0.7363, allocations: 5.436 MB / 0.6281 GB, free: 104.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/0.7364, allocations: 2.75 kB / 0.6281 GB, free: 104.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/0.7377, allocations: 304 kB / 0.6284 GB, free: 104.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00473/0.7424, allocations: 1.049 MB / 0.6294 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002588/0.7427, allocations: 73.53 kB / 0.6295 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006949/0.7497, allocations: 6.802 MB / 0.6361 GB, free: 98.62 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.7497, allocations: 3.469 kB / 0.6361 GB, free: 98.62 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009399/0.7591, allocations: 4.128 MB / 0.6401 GB, free: 96.29 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004324/0.7596, allocations: 232.8 kB / 0.6404 GB, free: 96.09 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002395/0.7598, allocations: 43.02 kB / 0.6404 GB, free: 96.06 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.7609, allocations: 46 kB / 0.6404 GB, free: 96.04 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003933/0.7613, allocations: 183.6 kB / 0.6406 GB, free: 95.94 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001625/0.7614, allocations: 82.67 kB / 0.6407 GB, free: 95.92 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001119/0.7626, allocations: 0.9561 MB / 0.6416 GB, free: 95.39 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7626, allocations: 0 / 0.6416 GB, free: 95.39 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003445/0.766, allocations: 1.247 MB / 0.6429 GB, free: 95.23 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.01084/0.7769, allocations: 5.878 MB / 0.6486 GB, free: 92.08 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004932/0.7818, allocations: 3.063 MB / 0.6516 GB, free: 90.38 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.7818, allocations: 2.625 kB / 0.6516 GB, free: 90.38 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002381/0.7842, allocations: 1.617 MB / 0.6532 GB, free: 89.34 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001583/0.7858, allocations: 322.5 kB / 0.6535 GB, free: 89.18 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03008/0.8159, allocations: 19.05 MB / 0.6721 GB, free: 70.61 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007232/0.8167, allocations: 1.475 MB / 0.6735 GB, free: 69.12 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001413/0.8181, allocations: 459.5 kB / 0.674 GB, free: 68.81 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001007/0.8191, allocations: 1.014 MB / 0.6749 GB, free: 67.8 MB / 478.1 MB Notification: Performance of SimCode: time 5.71e-07/0.8191, allocations: 0 / 0.6749 GB, free: 67.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08336/0.9025, allocations: 64.82 MB / 0.7382 GB, free: 3.691 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 32.25/33.15, allocations: 11.86 kB / 0.7383 GB, free: 3.684 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation_fmu --startTime=0 --stopTime=0.0001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation.fmu > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1)