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.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.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.001224/0.001224, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001283/0.001283, allocations: 194.6 kB / 16.14 MB, free: 6.664 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.251/1.251, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1726/0.1726, allocations: 15.32 MB / 305.3 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 63.91 kB / 369.8 MB, free: 4.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08498/0.08616, allocations: 53.61 MB / 423.4 MB, free: 14.71 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.MethanElectrosynthesis): time 0.2748/0.361, allocations: 30.03 MB / 453.4 MB, free: 38.56 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01741/0.3785, allocations: 22.07 MB / 475.5 MB, free: 28.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001397/0.3799, allocations: 48.53 kB / 475.5 MB, free: 28.37 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001587/0.3815, allocations: 0.5104 MB / 476 MB, free: 28.1 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003455/0.385, allocations: 1.212 MB / 477.2 MB, free: 27.37 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007572/0.3926, allocations: 2.872 MB / 480.1 MB, free: 25.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002517/0.3951, allocations: 2.311 MB / 482.4 MB, free: 24.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001569/0.3967, allocations: 1.359 MB / 483.8 MB, free: 23.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001363/0.3981, allocations: 0.9719 MB / 484.7 MB, free: 23.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001573/0.3996, allocations: 1.165 MB / 485.9 MB, free: 23.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004534/0.4001, allocations: 152.2 kB / 486.1 MB, free: 23.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006449/0.4066, allocations: 2.276 MB / 488.3 MB, free: 22.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004805/0.4071, allocations: 473.8 kB / 488.8 MB, free: 22.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001215/0.4083, allocations: 1.062 MB / 489.9 MB, free: 21.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006741/0.415, allocations: 4.535 MB / 494.4 MB, free: 19.72 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.415, allocations: 0 / 494.4 MB, free: 19.72 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.4151, allocations: 0 / 494.4 MB, free: 19.72 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.303e-05/0.4151, allocations: 0 / 494.4 MB, free: 19.72 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: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.003936/0.419, allocations: 2.682 MB / 497.1 MB, free: 18.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.4191, allocations: 7.156 kB / 497.1 MB, free: 18.13 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002344/0.4193, allocations: 269.2 kB / 497.3 MB, free: 17.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0017/0.421, allocations: 0.4927 MB / 497.8 MB, free: 17.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001641/0.4227, allocations: 1.16 MB / 499 MB, free: 17.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.4228, allocations: 204.2 kB / 499.2 MB, free: 16.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002523/0.4231, allocations: 187.6 kB / 499.4 MB, free: 16.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003771/0.4269, allocations: 2.645 MB / 0.4903 GB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.235e-05/0.4269, allocations: 0 / 0.4903 GB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001672/0.4271, allocations: 84 kB / 0.4903 GB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.373e-05/0.4271, allocations: 44 kB / 0.4904 GB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003778/0.4309, allocations: 3.281 MB / 0.4936 GB, free: 12.48 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.01033/0.4412, allocations: 8.48 MB / 0.5019 GB, free: 5.059 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.4428, allocations: 1.324 MB / 0.5032 GB, free: 3.773 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007473/0.4435, allocations: 0.6336 MB / 0.5038 GB, free: 3.195 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006985/0.4505, allocations: 5.558 MB / 0.5092 GB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.4506, allocations: 55.09 kB / 0.5093 GB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007462/0.4513, allocations: 174.4 kB / 0.5094 GB, free: 13.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 2.435e-06/0.4513, allocations: 0 / 0.5094 GB, free: 13.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.02723/0.4786, allocations: 7 MB / 0.5163 GB, free: 5.977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.4787, allocations: 115.8 kB / 0.5164 GB, free: 5.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001947/0.4806, allocations: 1.853 MB / 0.5182 GB, free: 3.969 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.241e-05/0.4807, allocations: 45.7 kB / 0.5182 GB, free: 3.918 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005636/0.4813, allocations: 1.01 MB / 0.5192 GB, free: 2.891 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002914/0.4816, allocations: 410.2 kB / 0.5196 GB, free: 2.484 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005448/0.4821, allocations: 415.1 kB / 0.52 GB, free: 2.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.467e-05/0.4822, allocations: 305.2 kB / 0.5203 GB, free: 1.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.4834, allocations: 0.8473 MB / 0.5211 GB, free: 0.918 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.4851, allocations: 1.577 MB / 0.5227 GB, free: 14.99 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002707/0.4878, allocations: 2.305 MB / 0.5249 GB, free: 12.35 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.327e-06/0.4878, allocations: 12 kB / 0.5249 GB, free: 12.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007483/0.4953, allocations: 3.249 MB / 0.5281 GB, free: 9.066 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.4954, allocations: 16.06 kB / 0.5281 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.921e-05/0.4954, allocations: 24 kB / 0.5281 GB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004657/0.5001, allocations: 1.005 MB / 0.5291 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001376/0.5014, allocations: 431.3 kB / 0.5295 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008868/0.5103, allocations: 6.873 MB / 0.5362 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/0.5119, allocations: 111.7 kB / 0.5363 GB, free: 180 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001808/0.5121, allocations: 120 kB / 0.5364 GB, free: 60 kB / 398.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 (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 {(2,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 {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006737/0.5128, allocations: 405.1 kB / 0.5368 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003053/0.5131, allocations: 142.2 kB / 0.537 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006188/0.5193, allocations: 2.144 MB / 0.5391 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.998e-06/0.5193, allocations: 12 kB / 0.5391 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.5193, allocations: 8 kB / 0.5391 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.5194, allocations: 7.969 kB / 0.5391 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008453/0.5278, allocations: 3.854 MB / 0.5429 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.5278, allocations: 0 / 0.5429 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007341/0.5286, allocations: 171.7 kB / 0.543 GB, free: 9.191 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004251/0.5329, allocations: 0.9039 MB / 0.5439 GB, free: 8.273 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.667e-05/0.533, allocations: 39.97 kB / 0.5439 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007315/0.5403, allocations: 6.244 MB / 0.55 GB, free: 1.566 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.5403, allocations: 8.016 kB / 0.55 GB, free: 1.559 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006577/0.5469, allocations: 2.838 MB / 0.5528 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003107/0.5472, allocations: 219.3 kB / 0.553 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002028/0.5474, allocations: 24 kB / 0.553 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008921/0.5483, allocations: 47.91 kB / 0.5531 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002534/0.5486, allocations: 108.8 kB / 0.5532 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.645e-05/0.5487, allocations: 47.92 kB / 0.5532 GB, free: 14.21 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001416/0.5501, allocations: 1.306 MB / 0.5545 GB, free: 12.91 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5501, allocations: 0 / 0.5545 GB, free: 12.91 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002699/0.5528, allocations: 0.9525 MB / 0.5555 GB, free: 11.95 MB / 430.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 (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 {(2,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,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008237/0.5611, allocations: 4.264 MB / 0.5596 GB, free: 7.629 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003965/0.565, allocations: 2.477 MB / 0.562 GB, free: 5.094 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.5651, allocations: 0.9375 kB / 0.562 GB, free: 5.094 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001848/0.5669, allocations: 1.216 MB / 0.5632 GB, free: 3.816 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.5682, allocations: 233.1 kB / 0.5634 GB, free: 3.586 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02671/0.5949, allocations: 18.03 MB / 0.5811 GB, free: 284 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008576/0.5958, allocations: 1.31 MB / 0.5823 GB, free: 14.94 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001366/0.5972, allocations: 344 kB / 0.5827 GB, free: 14.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000944/0.5981, allocations: 0.7569 MB / 0.5834 GB, free: 13.84 MB / 462.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5981, allocations: 0 / 0.5834 GB, free: 13.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2102/0.8083, allocations: 47.86 MB / 0.6301 GB, free: 122.7 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001414/0.8085, allocations: 230.3 kB / 0.6304 GB, free: 122.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.057/3.865, allocations: 7.906 kB / 0.6304 GB, free: 122.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/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)