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.00104/0.00104, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001114/0.001114, allocations: 193.9 kB / 16.14 MB, free: 6.688 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.243/1.243, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1759/0.1759, allocations: 15.31 MB / 305.3 MB, free: 15.31 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 67.91 kB / 369.8 MB, free: 4.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08362/0.08476, allocations: 53.61 MB / 423.4 MB, free: 14.68 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.1886/0.2734, allocations: 31.8 MB / 455.2 MB, free: 38.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02521/0.2986, allocations: 28.86 MB / 484 MB, free: 24.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001957/0.3006, allocations: 53.94 kB / 484.1 MB, free: 24.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001574/0.3022, allocations: 0.6151 MB / 484.7 MB, free: 23.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005246/0.3074, allocations: 1.981 MB / 486.7 MB, free: 22.67 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008785/0.3162, allocations: 3.433 MB / 490.1 MB, free: 20.65 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003275/0.3195, allocations: 2.991 MB / 493.1 MB, free: 19.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001672/0.3212, allocations: 1.712 MB / 494.8 MB, free: 18.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001333/0.3226, allocations: 1.392 MB / 496.2 MB, free: 17.99 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001493/0.3241, allocations: 1.613 MB / 497.8 MB, free: 17.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003235/0.3244, allocations: 197.1 kB / 498 MB, free: 17.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008319/0.3327, allocations: 3.07 MB / 0.4893 GB, free: 15.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005952/0.3333, allocations: 0.5997 MB / 0.4899 GB, free: 15.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001344/0.3347, allocations: 1.347 MB / 0.4912 GB, free: 14.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01151/0.3462, allocations: 5.949 MB / 0.4971 GB, free: 9.215 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.3463, allocations: 4 kB / 0.4971 GB, free: 9.211 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3463, allocations: 0 / 0.4971 GB, free: 9.211 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.174e-05/0.3463, allocations: 0 / 0.4971 GB, free: 9.211 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.005925/0.3522, allocations: 3.338 MB / 0.5003 GB, free: 6.168 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.3523, allocations: 12.03 kB / 0.5003 GB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003322/0.3526, allocations: 331.5 kB / 0.5006 GB, free: 5.879 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002466/0.3551, allocations: 0.5606 MB / 0.5012 GB, free: 5.402 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001966/0.3571, allocations: 1.372 MB / 0.5025 GB, free: 4.234 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/0.3572, allocations: 263.4 kB / 0.5028 GB, free: 3.957 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003314/0.3576, allocations: 244.7 kB / 0.503 GB, free: 3.719 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00484/0.3624, allocations: 3.041 MB / 0.506 GB, free: 1.164 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.385e-05/0.3625, allocations: 7.938 kB / 0.506 GB, free: 1.156 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000215/0.3627, allocations: 96 kB / 0.5061 GB, free: 1.062 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.733e-05/0.3628, allocations: 60 kB / 0.5061 GB, free: 1.004 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005824/0.3686, allocations: 3.603 MB / 0.5097 GB, free: 13.53 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.01621/0.3848, allocations: 10.46 MB / 0.5199 GB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002902/0.3877, allocations: 2.253 MB / 0.5221 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00151/0.3893, allocations: 1.116 MB / 0.5232 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01134/0.4006, allocations: 8.759 MB / 0.5317 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.4007, allocations: 51.81 kB / 0.5318 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001025/0.4017, allocations: 250.1 kB / 0.532 GB, free: 5.285 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 3.166e-06/0.4017, allocations: 0 / 0.532 GB, free: 5.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.03345/0.4352, allocations: 9.708 MB / 0.5415 GB, free: 11.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.428e-05/0.4353, allocations: 124.8 kB / 0.5416 GB, free: 11.31 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001645/0.4369, allocations: 1.454 MB / 0.543 GB, free: 9.844 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001959/0.4371, allocations: 57.7 kB / 0.5431 GB, free: 9.781 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006558/0.4378, allocations: 1.159 MB / 0.5442 GB, free: 8.605 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005072/0.4383, allocations: 0.6239 MB / 0.5448 GB, free: 7.973 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007283/0.439, allocations: 0.5129 MB / 0.5453 GB, free: 7.453 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.676e-05/0.4391, allocations: 305.1 kB / 0.5456 GB, free: 7.152 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00151/0.4406, allocations: 0.9384 MB / 0.5465 GB, free: 6.211 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002116/0.4428, allocations: 1.902 MB / 0.5484 GB, free: 3.867 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003738/0.4465, allocations: 2.992 MB / 0.5513 GB, free: 448 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.376e-05/0.4465, allocations: 12 kB / 0.5513 GB, free: 436 kB / 414.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.009696/0.4562, allocations: 3.9 MB / 0.5551 GB, free: 12.5 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.4563, allocations: 23.94 kB / 0.5552 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.261e-05/0.4563, allocations: 32 kB / 0.5552 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005135/0.4615, allocations: 1.175 MB / 0.5563 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001812/0.4633, allocations: 0.5772 MB / 0.5569 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009224/0.4725, allocations: 6.922 MB / 0.5637 GB, free: 3.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001844/0.4744, allocations: 143.6 kB / 0.5638 GB, free: 3.184 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002377/0.4746, allocations: 163.9 kB / 0.5639 GB, free: 3.023 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.0008378/0.4755, allocations: 496.7 kB / 0.5644 GB, free: 2.527 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003519/0.4758, allocations: 173.8 kB / 0.5646 GB, free: 2.355 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009477/0.4853, allocations: 3.246 MB / 0.5678 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/0.4854, allocations: 27.98 kB / 0.5678 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.4854, allocations: 4 kB / 0.5678 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.799e-05/0.4854, allocations: 7.969 kB / 0.5678 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01235/0.4977, allocations: 5.456 MB / 0.5731 GB, free: 9.484 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.4978, allocations: 0 / 0.5731 GB, free: 9.484 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.499, allocations: 303.6 kB / 0.5734 GB, free: 9.188 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005137/0.5042, allocations: 1.046 MB / 0.5744 GB, free: 8.125 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002593/0.5044, allocations: 67.95 kB / 0.5745 GB, free: 8.059 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007844/0.5123, allocations: 6.293 MB / 0.5806 GB, free: 1.336 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.5123, allocations: 4.078 kB / 0.5806 GB, free: 1.332 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009968/0.5223, allocations: 4.137 MB / 0.5847 GB, free: 13.13 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004364/0.5228, allocations: 238.8 kB / 0.5849 GB, free: 12.88 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002563/0.523, allocations: 36 kB / 0.585 GB, free: 12.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.5242, allocations: 75.84 kB / 0.585 GB, free: 12.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004022/0.5246, allocations: 173.7 kB / 0.5852 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001658/0.5248, allocations: 87.89 kB / 0.5853 GB, free: 12.51 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00113/0.5259, allocations: 0.9585 MB / 0.5862 GB, free: 11.55 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5259, allocations: 0 / 0.5862 GB, free: 11.55 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00351/0.5294, allocations: 1.238 MB / 0.5874 GB, free: 10.31 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.01219/0.5416, allocations: 5.87 MB / 0.5932 GB, free: 4.371 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005368/0.547, allocations: 3.054 MB / 0.5961 GB, free: 1.262 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.547, allocations: 0 / 0.5961 GB, free: 1.262 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1481/0.6951, allocations: 1.614 MB / 0.5977 GB, free: 131.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001829/0.6969, allocations: 294.4 kB / 0.598 GB, free: 131.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03144/0.7284, allocations: 21.43 MB / 0.6189 GB, free: 121.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007371/0.7292, allocations: 1.487 MB / 0.6204 GB, free: 120.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001714/0.7309, allocations: 462.3 kB / 0.6208 GB, free: 120.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009956/0.7319, allocations: 1.004 MB / 0.6218 GB, free: 119.8 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/0.7319, allocations: 0 / 0.6218 GB, free: 119.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07235/0.8043, allocations: 61.36 MB / 0.6817 GB, free: 81.51 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001534/0.8044, allocations: 231.2 kB / 0.6819 GB, free: 81.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.411/4.215, allocations: 2.953 kB / 0.6819 GB, free: 81.25 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)