Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.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.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis",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.000929/0.0009289, allocations: 99.78 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.0008807/0.0008809, 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.295/1.295, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2117/0.2117, allocations: 15.26 MB / 306.2 MB, free: 15.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003139/0.0003139, allocations: 8 kB / 371.5 MB, free: 3.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2726, allocations: 54.6 MB / 426.1 MB, free: 39.93 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.MethanElectrosynthesis): time 0.007207/0.2799, allocations: 8.733 MB / 434.8 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0165/0.2964, allocations: 18.82 MB / 453.6 MB, free: 23.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00162/0.2981, allocations: 42.03 kB / 453.7 MB, free: 23.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001421/0.2995, allocations: 0.5344 MB / 454.2 MB, free: 23.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00345/0.303, allocations: 1.528 MB / 455.7 MB, free: 22.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007835/0.3108, allocations: 2.93 MB / 458.7 MB, free: 20.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002682/0.3135, allocations: 1.622 MB / 460.3 MB, free: 19.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001335/0.3149, allocations: 1.204 MB / 461.5 MB, free: 18.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000944/0.3158, allocations: 0.8107 MB / 462.3 MB, free: 18.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009975/0.3168, allocations: 1.024 MB / 463.3 MB, free: 18.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000178/0.317, allocations: 122.5 kB / 463.4 MB, free: 18.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008199/0.3252, allocations: 2.581 MB / 466 MB, free: 17.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004054/0.3257, allocations: 415.9 kB / 466.4 MB, free: 17.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007042/0.3264, allocations: 405.6 kB / 466.8 MB, free: 17.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005644/0.332, allocations: 2.998 MB / 469.8 MB, free: 16.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3321, allocations: 3.938 kB / 469.8 MB, free: 16.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3321, allocations: 1 kB / 469.8 MB, free: 16.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.303e-05/0.3321, allocations: 0 / 469.8 MB, free: 16.31 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: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.005808/0.338, allocations: 2.281 MB / 472.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.687e-05/0.338, allocations: 9.438 kB / 472.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000417/0.3385, allocations: 265.8 kB / 472.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002027/0.3405, allocations: 0.5 MB / 472.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002307/0.3428, allocations: 1.107 MB / 474 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.343, allocations: 212.8 kB / 474.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003111/0.3433, allocations: 190.2 kB / 474.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004096/0.3474, allocations: 2.627 MB / 477 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.463e-05/0.3475, allocations: 5.219 kB / 477 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001666/0.3477, allocations: 77.34 kB / 477.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.999e-05/0.3477, allocations: 46.91 kB / 477.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004396/0.3521, allocations: 3.253 MB / 480.4 MB, free: 11.55 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.01234/0.3645, allocations: 8.47 MB / 488.9 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001606/0.3661, allocations: 1.319 MB / 490.2 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006772/0.3729, allocations: 5.468 MB / 495.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.331e-05/0.3729, allocations: 47.17 kB / 495.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008265/0.3738, allocations: 182.4 kB / 495.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=81): time 3.146e-06/0.3738, allocations: 0 / 495.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=115): time 0.02632/0.4001, allocations: 7.038 MB / 0.4911 GB, free: 8.047 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.014e-05/0.4002, allocations: 119.9 kB / 0.4912 GB, free: 7.906 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002172/0.4024, allocations: 1.841 MB / 0.493 GB, free: 6.047 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001793/0.4026, allocations: 49.64 kB / 0.4931 GB, free: 5.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006543/0.4033, allocations: 1.006 MB / 0.4941 GB, free: 4.969 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004028/0.4037, allocations: 422.1 kB / 0.4945 GB, free: 4.551 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.4038, allocations: 44 kB / 0.4945 GB, free: 4.508 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.4039, allocations: 377.9 kB / 0.4949 GB, free: 4.133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001232/0.4052, allocations: 0.8395 MB / 0.4957 GB, free: 3.289 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001641/0.4068, allocations: 1.557 MB / 0.4972 GB, free: 1.387 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001478/0.4083, allocations: 1.053 MB / 0.4982 GB, free: 340 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.4083, allocations: 4 kB / 0.4982 GB, free: 336 kB / 366.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007465/0.4158, allocations: 3.24 MB / 0.5014 GB, free: 13.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/0.4159, allocations: 16.47 kB / 0.5014 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.3e-05/0.4159, allocations: 31.94 kB / 0.5014 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004775/0.4207, allocations: 1.009 MB / 0.5024 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001566/0.4223, allocations: 431.3 kB / 0.5028 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009895/0.4322, allocations: 6.972 MB / 0.5096 GB, free: 4.172 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002096/0.4343, allocations: 115.7 kB / 0.5098 GB, free: 4.059 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002297/0.4346, allocations: 120 kB / 0.5099 GB, free: 3.941 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * 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 {(2,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 {2 15,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008383/0.4354, allocations: 405.7 kB / 0.5103 GB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002882/0.4357, allocations: 150.1 kB / 0.5104 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006286/0.442, allocations: 2.151 MB / 0.5125 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.005e-05/0.4421, allocations: 12 kB / 0.5125 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.4421, allocations: 4 kB / 0.5125 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.386e-05/0.4421, allocations: 3.984 kB / 0.5125 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009505/0.4516, allocations: 3.846 MB / 0.5163 GB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.4517, allocations: 0 / 0.5163 GB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007793/0.4525, allocations: 187.8 kB / 0.5165 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004421/0.4569, allocations: 0.8997 MB / 0.5173 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001683/0.4571, allocations: 47.91 kB / 0.5174 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008259/0.4653, allocations: 6.336 MB / 0.5236 GB, free: 5.352 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.4654, allocations: 96 / 0.5236 GB, free: 5.352 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006926/0.4723, allocations: 2.943 MB / 0.5264 GB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000714/0.4731, allocations: 235.2 kB / 0.5267 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002307/0.4733, allocations: 27.98 kB / 0.5267 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000916/0.4742, allocations: 47.92 kB / 0.5267 GB, free: 1.977 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/0.4745, allocations: 112.8 kB / 0.5268 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.4746, allocations: 47.97 kB / 0.5269 GB, free: 1.816 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001487/0.4761, allocations: 1.291 MB / 0.5282 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4761, allocations: 0 / 0.5282 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003443/0.4796, allocations: 0.9408 MB / 0.5291 GB, free: 15.58 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (90): * Single equations (assignments): 85 * 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 {(2,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 17,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.009242/0.4889, allocations: 4.827 MB / 0.5338 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00452/0.4934, allocations: 2.462 MB / 0.5362 GB, free: 8.148 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.4934, allocations: 448 / 0.5362 GB, free: 8.148 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001874/0.4953, allocations: 1.209 MB / 0.5374 GB, free: 6.879 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001361/0.4967, allocations: 213.8 kB / 0.5376 GB, free: 6.676 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01505/0.5118, allocations: 22.33 MB / 0.5594 GB, free: 15.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.5128, allocations: 1.349 MB / 0.5607 GB, free: 14.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001496/0.5143, allocations: 334.8 kB / 0.561 GB, free: 13.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/0.5154, allocations: 0.757 MB / 0.5618 GB, free: 13.09 MB / 446.1 MB Notification: Performance of SimCode: time 1.664e-06/0.5154, allocations: 0 / 0.5618 GB, free: 13.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.256/0.7714, allocations: 46.42 MB / 0.6071 GB, free: 135.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001392/0.7716, allocations: 212.4 kB / 0.6073 GB, free: 135.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.882/3.653, allocations: 0 / 0.6073 GB, free: 135.6 MB / 462.1 MB (rm -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) Environment - environmentSimulation: