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.0008832/0.0008832, allocations: 91.84 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.001075/0.001075, 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.343/1.343, allocations: 223.2 MB / 240 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1796/0.1796, allocations: 15.26 MB / 306.3 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002928/0.0002928, allocations: 8 kB / 371.6 MB, free: 3.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2628, allocations: 54.63 MB / 426.2 MB, free: 40.27 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.007399/0.2703, allocations: 9.706 MB / 435.9 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01613/0.2864, allocations: 20.27 MB / 456.2 MB, free: 21.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001487/0.288, allocations: 42.12 kB / 456.2 MB, free: 21.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.2892, allocations: 0.5184 MB / 456.7 MB, free: 21.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003156/0.2924, allocations: 1.32 MB / 458 MB, free: 20.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006308/0.2987, allocations: 2.657 MB / 460.7 MB, free: 19.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002858/0.3016, allocations: 2.211 MB / 462.9 MB, free: 17.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001513/0.3032, allocations: 1.198 MB / 464.1 MB, free: 17.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001043/0.3042, allocations: 0.8433 MB / 464.9 MB, free: 17.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001152/0.3054, allocations: 1.048 MB / 466 MB, free: 16.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002285/0.3056, allocations: 121 kB / 466.1 MB, free: 16.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006981/0.3126, allocations: 2.152 MB / 468.3 MB, free: 16.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007629/0.3134, allocations: 415.6 kB / 468.7 MB, free: 16.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008494/0.3143, allocations: 402.4 kB / 469.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006046/0.3203, allocations: 3.628 MB / 472.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.964e-06/0.3204, allocations: 0 / 472.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3204, allocations: 4.734 kB / 472.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.092e-05/0.3204, allocations: 1.156 kB / 472.7 MB, free: 14.49 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.004944/0.3254, allocations: 2.281 MB / 475 MB, free: 13.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.3254, allocations: 14.16 kB / 475 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003649/0.3258, allocations: 265.9 kB / 475.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001862/0.3277, allocations: 0.499 MB / 475.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001779/0.3295, allocations: 1.123 MB / 476.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.3296, allocations: 202.2 kB / 477.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002717/0.3299, allocations: 188.2 kB / 477.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003949/0.3339, allocations: 2.636 MB / 479.9 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.764e-05/0.3339, allocations: 1.594 kB / 479.9 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001726/0.3341, allocations: 76.06 kB / 480 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-05/0.3341, allocations: 47.61 kB / 480 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004689/0.3388, allocations: 3.261 MB / 483.3 MB, free: 9.711 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.01101/0.3499, allocations: 8.458 MB / 491.7 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.3515, allocations: 1.312 MB / 493 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007544/0.3522, allocations: 0.6302 MB / 493.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00735/0.3596, allocations: 5.464 MB / 499.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.432e-05/0.3597, allocations: 47.16 kB / 499.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000862/0.3605, allocations: 182.3 kB / 499.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=81): time 3.206e-06/0.3606, allocations: 0 / 499.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=115): time 0.02609/0.3867, allocations: 7.083 MB / 0.4946 GB, free: 4.586 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.586e-05/0.3868, allocations: 119.8 kB / 0.4947 GB, free: 4.445 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002111/0.3889, allocations: 1.841 MB / 0.4965 GB, free: 2.586 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001671/0.3891, allocations: 49.77 kB / 0.4965 GB, free: 2.531 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006012/0.3897, allocations: 1.006 MB / 0.4975 GB, free: 1.508 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003777/0.3901, allocations: 426.1 kB / 0.4979 GB, free: 1.086 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.3902, allocations: 40 kB / 0.498 GB, free: 1.047 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3904, allocations: 381.9 kB / 0.4983 GB, free: 0.668 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001343/0.3917, allocations: 0.8396 MB / 0.4991 GB, free: 15.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.3935, allocations: 1.569 MB / 0.5007 GB, free: 13.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0017/0.3952, allocations: 1.037 MB / 0.5017 GB, free: 12.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.61e-05/0.3952, allocations: 8 kB / 0.5017 GB, free: 12.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007817/0.4031, allocations: 3.248 MB / 0.5049 GB, free: 9.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.042e-05/0.4031, allocations: 16 kB / 0.5049 GB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.372e-05/0.4032, allocations: 24 kB / 0.5049 GB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004663/0.4078, allocations: 1.003 MB / 0.5059 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.4095, allocations: 439.3 kB / 0.5063 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009318/0.4189, allocations: 6.895 MB / 0.513 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001936/0.4208, allocations: 119.7 kB / 0.5132 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003284/0.4212, allocations: 116 kB / 0.5133 GB, free: 0.5469 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.0008692/0.422, allocations: 409.6 kB / 0.5137 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000361/0.4224, allocations: 146.2 kB / 0.5138 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006277/0.4287, allocations: 2.141 MB / 0.5159 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.4288, allocations: 12 kB / 0.5159 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.148e-05/0.4288, allocations: 12 kB / 0.5159 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.076e-05/0.4288, allocations: 7.969 kB / 0.5159 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009329/0.4381, allocations: 3.835 MB / 0.5197 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/0.4382, allocations: 7.953 kB / 0.5197 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007519/0.4389, allocations: 175.7 kB / 0.5198 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005124/0.4441, allocations: 0.9132 MB / 0.5207 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001599/0.4443, allocations: 47.97 kB / 0.5208 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007389/0.4517, allocations: 6.264 MB / 0.5269 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4517, allocations: 8 kB / 0.5269 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006532/0.4582, allocations: 2.838 MB / 0.5297 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005494/0.4588, allocations: 235.2 kB / 0.5299 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003426/0.4592, allocations: 24 kB / 0.5299 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.4602, allocations: 48.09 kB / 0.53 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002512/0.4605, allocations: 112.7 kB / 0.5301 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001109/0.4606, allocations: 51.97 kB / 0.5301 GB, free: 14.65 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00155/0.4621, allocations: 1.291 MB / 0.5314 GB, free: 13.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4622, allocations: 0 / 0.5314 GB, free: 13.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003396/0.4656, allocations: 0.9564 MB / 0.5323 GB, free: 12.4 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.008825/0.4744, allocations: 4.26 MB / 0.5365 GB, free: 8.074 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004307/0.4787, allocations: 2.461 MB / 0.5389 GB, free: 5.555 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4788, allocations: 0 / 0.5389 GB, free: 5.555 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001904/0.4807, allocations: 1.202 MB / 0.5401 GB, free: 4.297 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/0.4824, allocations: 239.6 kB / 0.5403 GB, free: 4.066 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02113/0.5035, allocations: 12.18 MB / 0.5522 GB, free: 7.191 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.5046, allocations: 1.314 MB / 0.5535 GB, free: 5.848 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001531/0.5061, allocations: 334.9 kB / 0.5538 GB, free: 5.527 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/0.5072, allocations: 0.7608 MB / 0.5545 GB, free: 4.766 MB / 430.1 MB Notification: Performance of SimCode: time 2.234e-06/0.5072, allocations: 0 / 0.5545 GB, free: 4.766 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2381/0.7454, allocations: 46.93 MB / 0.6003 GB, free: 133.6 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001451/0.7455, allocations: 217.1 kB / 0.6006 GB, free: 133.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.011/3.756, allocations: 0 / 0.6006 GB, free: 133.4 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: