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.005531/0.005531, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.001197/0.001198, allocations: 196.6 kB / 16.67 MB, free: 5.969 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1821/0.1821, allocations: 15.33 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 55.91 kB / 424.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2265, allocations: 53.6 MB / 478.3 MB, free: 25.67 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.03303/0.2595, allocations: 29.12 MB / 0.4955 GB, free: 5.613 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02188/0.2814, allocations: 22.04 MB / 0.5171 GB, free: 15.49 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001443/0.2829, allocations: 19.94 kB / 0.5171 GB, free: 15.47 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001402/0.2843, allocations: 0.5738 MB / 0.5176 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003288/0.2876, allocations: 1.354 MB / 0.519 GB, free: 13.53 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007435/0.2951, allocations: 3.308 MB / 0.5222 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003019/0.2981, allocations: 2.398 MB / 0.5245 GB, free: 7.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001594/0.2997, allocations: 1.582 MB / 0.5261 GB, free: 6.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000991/0.3007, allocations: 1.032 MB / 0.5271 GB, free: 5.125 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001329/0.3021, allocations: 1.206 MB / 0.5283 GB, free: 3.914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002735/0.3023, allocations: 232 kB / 0.5285 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005979/0.3083, allocations: 2.34 MB / 0.5308 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004669/0.3088, allocations: 0.5335 MB / 0.5313 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001019/0.3098, allocations: 1.132 MB / 0.5324 GB, free: 15.67 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009005/0.3188, allocations: 4.875 MB / 0.5372 GB, free: 10.78 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3189, allocations: 0 / 0.5372 GB, free: 10.78 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3189, allocations: 0 / 0.5372 GB, free: 10.78 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001052/0.319, allocations: 0 / 0.5372 GB, free: 10.78 MB / 414.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.005124/0.3241, allocations: 2.75 MB / 0.5398 GB, free: 7.965 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.3242, allocations: 8.031 kB / 0.5399 GB, free: 7.957 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003341/0.3245, allocations: 274.4 kB / 0.5401 GB, free: 7.68 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001816/0.3264, allocations: 0.5079 MB / 0.5406 GB, free: 7.172 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001887/0.3283, allocations: 1.182 MB / 0.5418 GB, free: 5.945 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/0.3284, allocations: 199.3 kB / 0.542 GB, free: 5.738 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00028/0.3287, allocations: 188 kB / 0.5421 GB, free: 5.555 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003775/0.3325, allocations: 2.647 MB / 0.5447 GB, free: 2.844 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.209e-05/0.3326, allocations: 7.938 kB / 0.5447 GB, free: 2.836 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001753/0.3327, allocations: 76 kB / 0.5448 GB, free: 2.762 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.122e-05/0.3328, allocations: 48 kB / 0.5448 GB, free: 2.715 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00454/0.3373, allocations: 3.271 MB / 0.548 GB, free: 15.44 MB / 430.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.01163/0.349, allocations: 8.46 MB / 0.5563 GB, free: 6.688 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00189/0.3509, allocations: 1.329 MB / 0.5576 GB, free: 5.301 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009258/0.3518, allocations: 0.6378 MB / 0.5582 GB, free: 4.652 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007825/0.3597, allocations: 5.543 MB / 0.5636 GB, free: 14.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.3597, allocations: 47.16 kB / 0.5637 GB, free: 14.53 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007351/0.3605, allocations: 178.8 kB / 0.5639 GB, free: 14.36 MB / 446.1 MB Notification: Performance of pre-optimization done (n=81): time 3.176e-06/0.3605, allocations: 0 / 0.5639 GB, free: 14.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=115): time 0.02609/0.3866, allocations: 7.246 MB / 0.5709 GB, free: 6.984 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.3867, allocations: 115.8 kB / 0.571 GB, free: 6.848 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002027/0.3887, allocations: 1.861 MB / 0.5729 GB, free: 4.969 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.936e-05/0.3888, allocations: 45.7 kB / 0.5729 GB, free: 4.918 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006407/0.3894, allocations: 1.041 MB / 0.5739 GB, free: 3.863 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003235/0.3898, allocations: 432.4 kB / 0.5743 GB, free: 3.438 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005938/0.3904, allocations: 419.4 kB / 0.5747 GB, free: 3.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.934e-05/0.3905, allocations: 305.1 kB / 0.575 GB, free: 2.719 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.3918, allocations: 0.8512 MB / 0.5758 GB, free: 1.863 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0018/0.3936, allocations: 1.581 MB / 0.5774 GB, free: 15.93 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002997/0.3966, allocations: 2.34 MB / 0.5797 GB, free: 13.25 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.361e-05/0.3966, allocations: 8 kB / 0.5797 GB, free: 13.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.00776/0.4044, allocations: 3.311 MB / 0.5829 GB, free: 9.914 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.4044, allocations: 19.98 kB / 0.5829 GB, free: 9.895 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.882e-05/0.4045, allocations: 24 kB / 0.583 GB, free: 9.871 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004614/0.4091, allocations: 1.04 MB / 0.584 GB, free: 8.816 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/0.4105, allocations: 435.3 kB / 0.5844 GB, free: 8.391 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009475/0.4199, allocations: 7.477 MB / 0.5917 GB, free: 480 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/0.4213, allocations: 95.91 kB / 0.5918 GB, free: 384 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002001/0.4215, allocations: 116 kB / 0.5919 GB, free: 268 kB / 462.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.0006777/0.4222, allocations: 409 kB / 0.5923 GB, free: 15.85 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003157/0.4225, allocations: 151 kB / 0.5924 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006432/0.429, allocations: 2.192 MB / 0.5946 GB, free: 13.48 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.429, allocations: 15.94 kB / 0.5946 GB, free: 13.46 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.429, allocations: 4 kB / 0.5946 GB, free: 13.46 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/0.429, allocations: 7.969 kB / 0.5946 GB, free: 13.45 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009005/0.438, allocations: 3.936 MB / 0.5984 GB, free: 9.422 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/0.4381, allocations: 3.938 kB / 0.5984 GB, free: 9.418 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007213/0.4388, allocations: 183.9 kB / 0.5986 GB, free: 9.238 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004165/0.443, allocations: 0.9208 MB / 0.5995 GB, free: 8.301 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/0.4431, allocations: 43.97 kB / 0.5996 GB, free: 8.258 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007837/0.4509, allocations: 6.77 MB / 0.6062 GB, free: 1.047 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.451, allocations: 4 kB / 0.6062 GB, free: 1.043 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1807/0.6316, allocations: 2.91 MB / 0.609 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003575/0.632, allocations: 217.2 kB / 0.6092 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002239/0.6323, allocations: 23.77 kB / 0.6092 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000851/0.6331, allocations: 33 kB / 0.6093 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/0.6334, allocations: 115.8 kB / 0.6094 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/0.6336, allocations: 51.31 kB / 0.6094 GB, free: 115 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001401/0.635, allocations: 1.305 MB / 0.6107 GB, free: 114.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.635, allocations: 0 / 0.6107 GB, free: 114.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002761/0.6378, allocations: 0.9726 MB / 0.6117 GB, free: 114.6 MB / 478.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.009063/0.6468, allocations: 4.352 MB / 0.6159 GB, free: 112.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004415/0.6513, allocations: 2.524 MB / 0.6184 GB, free: 111.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.6513, allocations: 0 / 0.6184 GB, free: 111.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001904/0.6532, allocations: 1.234 MB / 0.6196 GB, free: 111 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00137/0.6546, allocations: 237.8 kB / 0.6198 GB, free: 110.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0246/0.6792, allocations: 16.49 MB / 0.6359 GB, free: 102.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007232/0.6799, allocations: 1.306 MB / 0.6372 GB, free: 101.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009603/0.6809, allocations: 336.6 kB / 0.6375 GB, free: 101.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007186/0.6816, allocations: 0.7566 MB / 0.6382 GB, free: 100.9 MB / 478.1 MB Notification: Performance of SimCode: time 7.82e-07/0.6816, allocations: 0 / 0.6382 GB, free: 100.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06728/0.7489, allocations: 50.31 MB / 0.6874 GB, free: 56.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.95/26.7, allocations: 12.02 kB / 0.6874 GB, free: 56.79 MB / 478.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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)