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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.0008516/0.0008516, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009969/0.0009968, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1829/0.1829, allocations: 15.26 MB / 306.3 MB, free: 15.72 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002949/0.0002949, allocations: 12.22 kB / 371.6 MB, free: 3.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2569, allocations: 54.63 MB / 426.2 MB, free: 39.96 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65: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.0/package.mo:3011:6-3011:65: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.008534/0.2655, allocations: 11.31 MB / 437.5 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02131/0.2868, allocations: 26.44 MB / 463.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001719/0.2886, allocations: 48.91 kB / 464 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001309/0.2899, allocations: 0.6197 MB / 464.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004407/0.2943, allocations: 2.029 MB / 466.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007394/0.3017, allocations: 3.179 MB / 469.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003225/0.305, allocations: 2.834 MB / 472.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001873/0.3069, allocations: 1.54 MB / 474.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001972/0.3088, allocations: 1.173 MB / 475.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002009/0.3109, allocations: 1.456 MB / 476.8 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004305/0.3113, allocations: 156.2 kB / 477 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008362/0.3197, allocations: 2.863 MB / 479.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007931/0.3205, allocations: 0.5222 MB / 480.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009404/0.3214, allocations: 486.7 kB / 480.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008346/0.3298, allocations: 4.737 MB / 485.6 MB, free: 6.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3298, allocations: 0.6094 kB / 485.6 MB, free: 6.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3298, allocations: 0 / 485.6 MB, free: 6.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.764e-05/0.3299, allocations: 0 / 485.6 MB, free: 6.387 MB / 350.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.006087/0.336, allocations: 2.796 MB / 488.4 MB, free: 4.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3361, allocations: 9.812 kB / 488.4 MB, free: 4.785 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004664/0.3365, allocations: 329.3 kB / 488.7 MB, free: 4.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002142/0.3387, allocations: 0.5689 MB / 489.3 MB, free: 4.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002133/0.3408, allocations: 1.302 MB / 490.6 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001589/0.341, allocations: 267 kB / 490.8 MB, free: 3.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003418/0.3413, allocations: 242.8 kB / 491.1 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004339/0.3457, allocations: 3.012 MB / 494.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.334e-05/0.3457, allocations: 12.92 kB / 494.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002213/0.346, allocations: 101.8 kB / 494.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.383e-05/0.346, allocations: 58.31 kB / 494.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004721/0.3507, allocations: 3.586 MB / 497.8 MB, free: 14.11 MB / 366.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.01502/0.3658, allocations: 10.4 MB / 0.4963 GB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002779/0.3686, allocations: 2.25 MB / 0.4985 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001539/0.3701, allocations: 1.106 MB / 0.4996 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01148/0.3816, allocations: 8.591 MB / 0.508 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.3817, allocations: 55.81 kB / 0.508 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001117/0.3828, allocations: 261.8 kB / 0.5083 GB, free: 6.094 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.677e-06/0.3828, allocations: 4 kB / 0.5083 GB, free: 6.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.03313/0.416, allocations: 9.748 MB / 0.5178 GB, free: 12.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.4161, allocations: 120.8 kB / 0.5179 GB, free: 12.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001711/0.4179, allocations: 1.446 MB / 0.5193 GB, free: 10.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002284/0.4181, allocations: 61.77 kB / 0.5194 GB, free: 10.56 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007291/0.4188, allocations: 1.151 MB / 0.5205 GB, free: 9.391 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006326/0.4195, allocations: 0.6317 MB / 0.5211 GB, free: 8.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.4196, allocations: 48 kB / 0.5212 GB, free: 8.703 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.4198, allocations: 415.3 kB / 0.5216 GB, free: 8.293 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001563/0.4214, allocations: 0.9305 MB / 0.5225 GB, free: 7.359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002139/0.4236, allocations: 1.886 MB / 0.5243 GB, free: 5.035 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001847/0.4254, allocations: 1.2 MB / 0.5255 GB, free: 3.832 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-05/0.4254, allocations: 8 kB / 0.5255 GB, free: 3.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.009784/0.4352, allocations: 3.889 MB / 0.5293 GB, free: 15.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/0.4353, allocations: 19.95 kB / 0.5293 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.892e-05/0.4353, allocations: 32 kB / 0.5294 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005231/0.4406, allocations: 1.195 MB / 0.5305 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002185/0.4428, allocations: 0.585 MB / 0.5311 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009191/0.452, allocations: 6.907 MB / 0.5378 GB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002095/0.4541, allocations: 155.5 kB / 0.538 GB, free: 6.578 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002719/0.4544, allocations: 159.9 kB / 0.5381 GB, free: 6.422 MB / 414.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 3} * Non-linear torn systems: 2 {1 18,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009106/0.4553, allocations: 495.6 kB / 0.5386 GB, free: 5.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00031/0.4556, allocations: 169.8 kB / 0.5388 GB, free: 5.762 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009053/0.4647, allocations: 3.259 MB / 0.542 GB, free: 2.484 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.67e-05/0.4647, allocations: 20 kB / 0.542 GB, free: 2.465 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.4647, allocations: 4 kB / 0.542 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.106e-05/0.4648, allocations: 11.97 kB / 0.542 GB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01191/0.4767, allocations: 5.425 MB / 0.5473 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.4767, allocations: 4.281 kB / 0.5473 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/0.4779, allocations: 303.6 kB / 0.5476 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00497/0.4829, allocations: 1.069 MB / 0.5486 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000194/0.4831, allocations: 67.94 kB / 0.5487 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00751/0.4906, allocations: 6.3 MB / 0.5548 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.4907, allocations: 0 / 0.5548 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009586/0.5003, allocations: 4.137 MB / 0.5589 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005472/0.5008, allocations: 239.1 kB / 0.5591 GB, free: 296 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003584/0.5012, allocations: 43.95 kB / 0.5592 GB, free: 252 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.5024, allocations: 75.81 kB / 0.5592 GB, free: 176 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003575/0.5028, allocations: 181.7 kB / 0.5594 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001783/0.503, allocations: 83.91 kB / 0.5595 GB, free: 15.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001222/0.5042, allocations: 0.939 MB / 0.5604 GB, free: 14.97 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5042, allocations: 0 / 0.5604 GB, free: 14.97 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004093/0.5083, allocations: 1.23 MB / 0.5616 GB, free: 13.74 MB / 446.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 2 {1 19,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01212/0.5204, allocations: 5.843 MB / 0.5673 GB, free: 7.824 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005286/0.5257, allocations: 2.999 MB / 0.5702 GB, free: 4.773 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.964e-06/0.5258, allocations: 0 / 0.5702 GB, free: 4.773 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002801/0.5286, allocations: 1.63 MB / 0.5718 GB, free: 3.086 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.5304, allocations: 291.4 kB / 0.5721 GB, free: 2.805 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02734/0.5578, allocations: 14.35 MB / 0.5861 GB, free: 3.355 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/0.5589, allocations: 1.482 MB / 0.5876 GB, free: 1.84 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001941/0.5609, allocations: 472.4 kB / 0.588 GB, free: 1.391 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001332/0.5622, allocations: 1.015 MB / 0.589 GB, free: 388 kB / 462.1 MB Notification: Performance of SimCode: time 7.81e-07/0.5622, allocations: 3.938 kB / 0.589 GB, free: 384 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2627/0.8249, allocations: 60.11 MB / 0.6477 GB, free: 107.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001561/0.8251, allocations: 218.2 kB / 0.6479 GB, free: 107.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.516/4.341, allocations: 0 / 0.6479 GB, free: 107.1 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/linux/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) Environment - environmentSimulation: