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.001126/0.001126, allocations: 108 kB / 15.6 MB, free: 128 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.001127/0.001127, allocations: 197.8 kB / 16.53 MB, free: 6.668 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.148/1.148, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1603/0.1603, allocations: 15.31 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 63.91 kB / 370.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07737/0.07851, allocations: 53.62 MB / 424.1 MB, free: 14.16 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.2541/0.3327, allocations: 30.64 MB / 454.7 MB, free: 38.83 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02028/0.353, allocations: 28.88 MB / 483.6 MB, free: 23.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000993/0.354, allocations: 31.22 kB / 483.6 MB, free: 23.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001405/0.3554, allocations: 0.6879 MB / 484.3 MB, free: 23.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004301/0.3597, allocations: 2.226 MB / 486.5 MB, free: 22.14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007385/0.3671, allocations: 3.914 MB / 490.4 MB, free: 19.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002738/0.3699, allocations: 3.074 MB / 493.5 MB, free: 18.32 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00196/0.3718, allocations: 1.963 MB / 495.5 MB, free: 17.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00169/0.3735, allocations: 1.442 MB / 496.9 MB, free: 16.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001971/0.3755, allocations: 1.66 MB / 498.6 MB, free: 16.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003269/0.3759, allocations: 296.6 kB / 498.9 MB, free: 16.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00706/0.3829, allocations: 3.139 MB / 0.4902 GB, free: 15.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004396/0.3834, allocations: 0.6868 MB / 0.4909 GB, free: 14.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009443/0.3843, allocations: 1.439 MB / 0.4923 GB, free: 13.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007788/0.3921, allocations: 6.299 MB / 0.4985 GB, free: 8.227 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3921, allocations: 0 / 0.4985 GB, free: 8.227 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3922, allocations: 0 / 0.4985 GB, free: 8.227 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.046e-05/0.3922, allocations: 0 / 0.4985 GB, free: 8.227 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.00468/0.3969, allocations: 3.334 MB / 0.5017 GB, free: 5.188 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.3969, allocations: 8.031 kB / 0.5017 GB, free: 5.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002989/0.3972, allocations: 335.4 kB / 0.502 GB, free: 4.898 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001816/0.399, allocations: 0.5602 MB / 0.5026 GB, free: 4.422 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001579/0.4006, allocations: 1.368 MB / 0.5039 GB, free: 3.258 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.4008, allocations: 267.8 kB / 0.5042 GB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000273/0.401, allocations: 245.8 kB / 0.5044 GB, free: 2.738 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003268/0.4043, allocations: 3.044 MB / 0.5074 GB, free: 28 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.684e-05/0.4044, allocations: 0 / 0.5074 GB, free: 28 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002458/0.4046, allocations: 100.1 kB / 0.5075 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.63e-05/0.4047, allocations: 60 kB / 0.5075 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004668/0.4093, allocations: 3.607 MB / 0.5111 GB, free: 12.26 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.01272/0.4221, allocations: 10.48 MB / 0.5213 GB, free: 1.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002573/0.4246, allocations: 2.261 MB / 0.5235 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001395/0.4261, allocations: 1.117 MB / 0.5246 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01044/0.4365, allocations: 8.735 MB / 0.5331 GB, free: 4.324 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.4365, allocations: 47.88 kB / 0.5332 GB, free: 4.27 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009084/0.4375, allocations: 262 kB / 0.5334 GB, free: 4.012 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 3.326e-06/0.4375, allocations: 0 / 0.5334 GB, free: 4.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.03027/0.4677, allocations: 9.697 MB / 0.5429 GB, free: 10.19 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.4678, allocations: 128.8 kB / 0.543 GB, free: 10.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001486/0.4693, allocations: 1.466 MB / 0.5444 GB, free: 8.566 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.4694, allocations: 53.7 kB / 0.5445 GB, free: 8.508 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006314/0.4701, allocations: 1.151 MB / 0.5456 GB, free: 7.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004341/0.4705, allocations: 0.6317 MB / 0.5462 GB, free: 6.699 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006691/0.4712, allocations: 0.5129 MB / 0.5467 GB, free: 6.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.837e-05/0.4713, allocations: 305.1 kB / 0.547 GB, free: 5.879 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/0.4727, allocations: 0.9423 MB / 0.5479 GB, free: 4.934 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001932/0.4746, allocations: 1.894 MB / 0.5498 GB, free: 2.598 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003563/0.4782, allocations: 3.007 MB / 0.5527 GB, free: 15.16 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.354e-05/0.4782, allocations: 8 kB / 0.5527 GB, free: 15.15 MB / 430.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.008919/0.4871, allocations: 3.897 MB / 0.5565 GB, free: 11.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.4872, allocations: 26 kB / 0.5566 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.197e-05/0.4872, allocations: 32 kB / 0.5566 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004699/0.4919, allocations: 1.171 MB / 0.5577 GB, free: 9.984 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/0.4936, allocations: 0.585 MB / 0.5583 GB, free: 9.398 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008492/0.5021, allocations: 7.517 MB / 0.5657 GB, free: 1.434 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.5036, allocations: 107.8 kB / 0.5658 GB, free: 1.328 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002196/0.5038, allocations: 167.9 kB / 0.5659 GB, free: 1.164 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.0007064/0.5045, allocations: 476.9 kB / 0.5664 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003216/0.5049, allocations: 173.8 kB / 0.5665 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008599/0.5135, allocations: 3.265 MB / 0.5697 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.5135, allocations: 20 kB / 0.5697 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.5135, allocations: 0 / 0.5697 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.738e-05/0.5135, allocations: 11.97 kB / 0.5698 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/0.5246, allocations: 5.452 MB / 0.5751 GB, free: 7.637 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.5246, allocations: 4 kB / 0.5751 GB, free: 7.633 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/0.5257, allocations: 303.6 kB / 0.5754 GB, free: 7.336 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004234/0.5299, allocations: 1.046 MB / 0.5764 GB, free: 6.273 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001491/0.5301, allocations: 75.88 kB / 0.5765 GB, free: 6.199 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007163/0.5373, allocations: 6.798 MB / 0.5831 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.5373, allocations: 7.969 kB / 0.5831 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008699/0.546, allocations: 4.141 MB / 0.5872 GB, free: 10.75 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003311/0.5463, allocations: 222.9 kB / 0.5874 GB, free: 10.51 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002664/0.5466, allocations: 39.98 kB / 0.5874 GB, free: 10.47 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009994/0.5476, allocations: 48.2 kB / 0.5875 GB, free: 10.42 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003361/0.548, allocations: 177.7 kB / 0.5876 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/0.5481, allocations: 87.89 kB / 0.5877 GB, free: 10.16 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001047/0.5492, allocations: 0.9585 MB / 0.5886 GB, free: 9.203 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5492, allocations: 0 / 0.5886 GB, free: 9.203 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003113/0.5523, allocations: 1.245 MB / 0.5899 GB, free: 7.957 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.01116/0.5635, allocations: 5.889 MB / 0.5956 GB, free: 1.988 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1359/0.6994, allocations: 3.312 MB / 0.5988 GB, free: 132 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.6994, allocations: 0 / 0.5988 GB, free: 132 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002273/0.7017, allocations: 1.623 MB / 0.6004 GB, free: 131.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/0.7032, allocations: 310 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.02567/0.7289, 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.0006412/0.7295, allocations: 1.48 MB / 0.6221 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001537/0.7311, allocations: 452.5 kB / 0.6226 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009511/0.7321, allocations: 1.019 MB / 0.6236 GB, free: 119.9 MB / 462.1 MB Notification: Performance of SimCode: time 5.11e-07/0.7321, allocations: 0 / 0.6236 GB, free: 119.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.644/1.376, allocations: 63.11 MB / 0.6852 GB, free: 78.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.98/14.36, allocations: 14.11 kB / 0.6852 GB, free: 78.23 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 & /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)