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.0009939/0.000994, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001101/0.001101, allocations: 177.3 kB / 15.95 MB, free: 216 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 / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1956/0.1956, allocations: 15.26 MB / 306.2 MB, free: 15.71 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004187/0.0004189, allocations: 8 kB / 371.5 MB, free: 3.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2789, allocations: 54.63 MB / 426.1 MB, free: 39.54 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.007791/0.2867, allocations: 10.15 MB / 436.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02014/0.3068, allocations: 24.49 MB / 460.7 MB, free: 18.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001869/0.3088, allocations: 51.38 kB / 460.8 MB, free: 18.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001479/0.3103, allocations: 0.628 MB / 461.4 MB, free: 17.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005316/0.3156, allocations: 2.334 MB / 463.7 MB, free: 16.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009826/0.3254, allocations: 3.489 MB / 467.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003562/0.329, allocations: 2.056 MB / 469.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001899/0.3309, allocations: 1.535 MB / 470.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001873/0.3328, allocations: 1.09 MB / 471.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002133/0.335, allocations: 1.41 MB / 473.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003336/0.3353, allocations: 156.3 kB / 473.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01009/0.3454, allocations: 3.441 MB / 476.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007928/0.3462, allocations: 0.5307 MB / 477.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009332/0.3472, allocations: 484 kB / 477.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007891/0.3551, allocations: 3.862 MB / 481.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.3551, allocations: 0 / 481.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3551, allocations: 0 / 481.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.296e-05/0.3552, allocations: 1.031 kB / 481.8 MB, free: 9.172 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.006136/0.3613, allocations: 2.792 MB / 484.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.3614, allocations: 9.25 kB / 484.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000478/0.3619, allocations: 329.6 kB / 484.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002249/0.3641, allocations: 0.5642 MB / 485.5 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002329/0.3665, allocations: 1.289 MB / 486.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001979/0.3667, allocations: 266.9 kB / 487 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003747/0.3671, allocations: 243.6 kB / 487.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004742/0.3718, allocations: 3.004 MB / 490.2 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.408e-05/0.3719, allocations: 5.281 kB / 490.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002366/0.3721, allocations: 105 kB / 490.4 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.309e-05/0.3722, allocations: 59.52 kB / 490.4 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004865/0.377, allocations: 3.587 MB / 494 MB, free: 1.816 MB / 350.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.01535/0.3924, allocations: 10.38 MB / 0.4926 GB, free: 7.062 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002837/0.3953, allocations: 2.242 MB / 0.4947 GB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01231/0.4076, allocations: 8.56 MB / 0.5031 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/0.4077, allocations: 51.81 kB / 0.5032 GB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001264/0.4089, allocations: 261.9 kB / 0.5034 GB, free: 10.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 5.059e-06/0.409, allocations: 0 / 0.5034 GB, free: 10.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.03414/0.4431, allocations: 9.735 MB / 0.5129 GB, free: 1.125 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.809e-05/0.4432, allocations: 120.8 kB / 0.513 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001779/0.445, allocations: 1.447 MB / 0.5144 GB, free: 15.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002939/0.4453, allocations: 61.77 kB / 0.5145 GB, free: 15.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007418/0.4461, allocations: 1.151 MB / 0.5156 GB, free: 14.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007837/0.4468, allocations: 0.6278 MB / 0.5162 GB, free: 13.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.447, allocations: 56 kB / 0.5163 GB, free: 13.6 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.4472, allocations: 407.4 kB / 0.5167 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001494/0.4487, allocations: 0.9266 MB / 0.5176 GB, free: 12.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002071/0.4507, allocations: 1.878 MB / 0.5194 GB, free: 9.949 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001862/0.4526, allocations: 1.2 MB / 0.5206 GB, free: 8.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-05/0.4526, allocations: 12 kB / 0.5206 GB, free: 8.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.00949/0.4621, allocations: 3.874 MB / 0.5244 GB, free: 4.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.243e-05/0.4622, allocations: 20 kB / 0.5244 GB, free: 4.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-05/0.4623, allocations: 32 kB / 0.5244 GB, free: 4.789 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00524/0.4675, allocations: 1.2 MB / 0.5256 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002205/0.4698, allocations: 0.5889 MB / 0.5262 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009299/0.4791, allocations: 6.984 MB / 0.533 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002528/0.4816, allocations: 155.6 kB / 0.5332 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004027/0.4821, allocations: 155.9 kB / 0.5333 GB, free: 11.27 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.001223/0.4833, allocations: 485.4 kB / 0.5338 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004269/0.4837, allocations: 173.8 kB / 0.5339 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009342/0.4931, allocations: 3.272 MB / 0.5371 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.066e-05/0.4931, allocations: 16 kB / 0.5371 GB, free: 7.305 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.4931, allocations: 12 kB / 0.5371 GB, free: 7.293 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.59e-05/0.4932, allocations: 7.969 kB / 0.5372 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01271/0.5059, allocations: 5.413 MB / 0.5424 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-05/0.506, allocations: 8.062 kB / 0.5425 GB, free: 1.762 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001347/0.5073, allocations: 303.6 kB / 0.5427 GB, free: 1.465 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004856/0.5122, allocations: 1.061 MB / 0.5438 GB, free: 396 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003137/0.5125, allocations: 71.94 kB / 0.5438 GB, free: 324 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007654/0.5202, allocations: 6.38 MB / 0.5501 GB, free: 9.512 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.5202, allocations: 4 kB / 0.5501 GB, free: 9.508 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009797/0.53, allocations: 4.284 MB / 0.5543 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006769/0.5307, allocations: 246.8 kB / 0.5545 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004638/0.5312, allocations: 36 kB / 0.5545 GB, free: 4.785 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/0.5326, allocations: 75.8 kB / 0.5546 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003819/0.533, allocations: 181.6 kB / 0.5548 GB, free: 4.531 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001806/0.5332, allocations: 83.95 kB / 0.5549 GB, free: 4.449 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00125/0.5344, allocations: 0.9468 MB / 0.5558 GB, free: 3.504 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5344, allocations: 0 / 0.5558 GB, free: 3.504 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004485/0.5389, allocations: 1.222 MB / 0.557 GB, free: 2.281 MB / 430.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.01257/0.5515, allocations: 6.723 MB / 0.5635 GB, free: 11.44 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005433/0.557, allocations: 2.995 MB / 0.5665 GB, free: 8.391 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.557, allocations: 0.5625 kB / 0.5665 GB, free: 8.391 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002754/0.5598, allocations: 1.623 MB / 0.5681 GB, free: 6.715 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.5613, allocations: 273.3 kB / 0.5683 GB, free: 6.449 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.198/0.7594, allocations: 29.03 MB / 0.5967 GB, free: 128.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008943/0.7603, allocations: 1.529 MB / 0.5982 GB, free: 127.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00202/0.7623, allocations: 460.7 kB / 0.5986 GB, free: 127.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001213/0.7635, allocations: 1.013 MB / 0.5996 GB, free: 127.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.7636, allocations: 0 / 0.5996 GB, free: 127.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09652/0.8601, allocations: 59.49 MB / 0.6577 GB, free: 97.74 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001492/0.8603, allocations: 222.8 kB / 0.6579 GB, free: 97.49 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.326/4.186, allocations: 7.875 kB / 0.6579 GB, free: 97.48 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: