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.007/0.007, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.00184/0.00184, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1786/0.1786, allocations: 15.31 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.89 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2114, allocations: 53.61 MB / 478.3 MB, free: 25.65 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.03/0.2414, allocations: 29.03 MB / 0.4955 GB, free: 5.695 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02168/0.2631, allocations: 22.04 MB / 0.517 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001318/0.2645, allocations: 23.94 kB / 0.517 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001447/0.2659, allocations: 0.5777 MB / 0.5176 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00323/0.2692, allocations: 1.35 MB / 0.5189 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007241/0.2764, allocations: 3.304 MB / 0.5221 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00284/0.2793, allocations: 2.402 MB / 0.5245 GB, free: 7.871 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001653/0.281, allocations: 1.582 MB / 0.526 GB, free: 6.238 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001091/0.2821, allocations: 1.036 MB / 0.527 GB, free: 5.199 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001325/0.2834, allocations: 1.199 MB / 0.5282 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003154/0.2838, allocations: 232 kB / 0.5284 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005884/0.2896, allocations: 2.34 MB / 0.5307 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005406/0.2902, allocations: 0.5374 MB / 0.5312 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001133/0.2914, allocations: 1.132 MB / 0.5323 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00805/0.2994, allocations: 4.875 MB / 0.5371 GB, free: 10.86 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.2994, allocations: 0 / 0.5371 GB, free: 10.86 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2995, allocations: 0 / 0.5371 GB, free: 10.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.62e-05/0.2995, allocations: 0 / 0.5371 GB, free: 10.86 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.004715/0.3042, allocations: 2.75 MB / 0.5398 GB, free: 8.043 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.3043, allocations: 8.031 kB / 0.5398 GB, free: 8.035 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003069/0.3046, allocations: 266.5 kB / 0.54 GB, free: 7.766 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001907/0.3065, allocations: 0.5079 MB / 0.5405 GB, free: 7.258 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001931/0.3084, allocations: 1.186 MB / 0.5417 GB, free: 6.027 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001668/0.3086, allocations: 207.3 kB / 0.5419 GB, free: 5.812 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003056/0.3089, allocations: 192 kB / 0.5421 GB, free: 5.625 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003774/0.3127, allocations: 2.643 MB / 0.5446 GB, free: 2.922 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.784e-05/0.3128, allocations: 7.938 kB / 0.5447 GB, free: 2.914 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001853/0.313, allocations: 79.94 kB / 0.5447 GB, free: 2.836 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.395e-05/0.313, allocations: 48 kB / 0.5448 GB, free: 2.789 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006466/0.3195, allocations: 3.275 MB / 0.548 GB, free: 15.51 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.01247/0.332, allocations: 8.46 MB / 0.5562 GB, free: 6.758 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001948/0.3339, allocations: 1.325 MB / 0.5575 GB, free: 5.375 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009447/0.3349, allocations: 0.6378 MB / 0.5582 GB, free: 4.727 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008232/0.3431, allocations: 5.536 MB / 0.5636 GB, free: 14.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.3432, allocations: 47.16 kB / 0.5636 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008267/0.344, allocations: 182.8 kB / 0.5638 GB, free: 14.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=81): time 3.056e-06/0.3441, allocations: 0 / 0.5638 GB, free: 14.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=115): time 0.02674/0.3708, allocations: 7.246 MB / 0.5709 GB, free: 7.062 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.508e-05/0.3709, allocations: 123.8 kB / 0.571 GB, free: 6.918 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002009/0.3729, allocations: 1.853 MB / 0.5728 GB, free: 5.047 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001252/0.3731, allocations: 45.7 kB / 0.5728 GB, free: 4.996 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006224/0.3737, allocations: 1.041 MB / 0.5738 GB, free: 3.941 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003648/0.3741, allocations: 432.4 kB / 0.5743 GB, free: 3.516 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005814/0.3746, allocations: 419.4 kB / 0.5747 GB, free: 3.098 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.481e-05/0.3747, allocations: 301.1 kB / 0.5749 GB, free: 2.801 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/0.3761, allocations: 0.8551 MB / 0.5758 GB, free: 1.941 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001847/0.3779, allocations: 1.589 MB / 0.5773 GB, free: 16 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003083/0.381, allocations: 2.337 MB / 0.5796 GB, free: 13.33 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/0.3811, allocations: 8 kB / 0.5796 GB, free: 13.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008081/0.3892, allocations: 3.307 MB / 0.5828 GB, free: 9.988 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/0.3892, allocations: 16.47 kB / 0.5829 GB, free: 9.973 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-05/0.3893, allocations: 28 kB / 0.5829 GB, free: 9.945 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004845/0.3941, allocations: 1.034 MB / 0.5839 GB, free: 8.898 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001584/0.3957, allocations: 435.3 kB / 0.5843 GB, free: 8.473 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009767/0.4055, allocations: 7.485 MB / 0.5916 GB, free: 0.543 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001682/0.4072, allocations: 95.78 kB / 0.5917 GB, free: 460 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00023/0.4075, allocations: 116 kB / 0.5918 GB, free: 344 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.0007147/0.4082, allocations: 409.2 kB / 0.5922 GB, free: 15.92 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003419/0.4085, allocations: 151 kB / 0.5924 GB, free: 15.77 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006558/0.4151, allocations: 2.191 MB / 0.5945 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.4151, allocations: 15.94 kB / 0.5945 GB, free: 13.53 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.4152, allocations: 4 kB / 0.5945 GB, free: 13.53 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/0.4152, allocations: 7.969 kB / 0.5945 GB, free: 13.52 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009371/0.4246, allocations: 3.94 MB / 0.5984 GB, free: 9.492 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.4246, allocations: 4.156 kB / 0.5984 GB, free: 9.488 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007558/0.4254, allocations: 171.8 kB / 0.5985 GB, free: 9.32 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004292/0.4297, allocations: 0.9247 MB / 0.5994 GB, free: 8.379 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.4298, allocations: 43.97 kB / 0.5995 GB, free: 8.336 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007827/0.4376, allocations: 6.776 MB / 0.6061 GB, free: 1.121 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.4377, allocations: 288 / 0.6061 GB, free: 1.121 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1841/0.6218, allocations: 2.906 MB / 0.6089 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004391/0.6222, allocations: 218.9 kB / 0.6092 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002816/0.6225, allocations: 28.98 kB / 0.6092 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009572/0.6235, allocations: 31.03 kB / 0.6092 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002967/0.6238, allocations: 117.8 kB / 0.6093 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001146/0.6239, allocations: 54.45 kB / 0.6094 GB, free: 115 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001449/0.6254, allocations: 1.299 MB / 0.6106 GB, free: 114.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6254, allocations: 0 / 0.6106 GB, free: 114.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003086/0.6285, allocations: 0.9748 MB / 0.6116 GB, free: 114.7 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.00948/0.638, allocations: 4.35 MB / 0.6158 GB, free: 112.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004439/0.6425, allocations: 2.518 MB / 0.6183 GB, free: 111.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.6425, allocations: 0 / 0.6183 GB, free: 111.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001946/0.6444, allocations: 1.236 MB / 0.6195 GB, free: 111 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/0.6459, allocations: 243.8 kB / 0.6197 GB, free: 110.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02593/0.6719, allocations: 16.49 MB / 0.6358 GB, free: 102.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007409/0.6727, allocations: 1.312 MB / 0.6371 GB, free: 101.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001089/0.6738, allocations: 334.8 kB / 0.6374 GB, free: 101.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007848/0.6745, allocations: 0.7572 MB / 0.6382 GB, free: 101 MB / 478.1 MB Notification: Performance of SimCode: time 7.91e-07/0.6746, allocations: 0 / 0.6382 GB, free: 101 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07064/0.7452, allocations: 50.3 MB / 0.6873 GB, free: 56.84 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.9/26.65, allocations: 8.016 kB / 0.6873 GB, free: 56.83 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)