Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.H2O_ElectrochemicalCell.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.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_H2O_ElectrochemicalCell",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.006376/0.006376, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001136/0.001136, allocations: 192.2 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07476/0.07476, allocations: 15.31 MB / 305.8 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 63.91 kB / 424.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08955/0.09079, allocations: 53.61 MB / 478.3 MB, free: 6.309 MB / 350.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.H2O_ElectrochemicalCell): time 0.03372/0.1245, allocations: 27.87 MB / 0.4943 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2021/0.3266, allocations: 19.37 MB / 0.5132 GB, free: 17.74 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008852/0.3275, allocations: 18.44 kB / 0.5132 GB, free: 17.74 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.3286, allocations: 0.504 MB / 0.5137 GB, free: 17.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002646/0.3313, allocations: 1.237 MB / 0.5149 GB, free: 17.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006979/0.3383, allocations: 2.852 MB / 0.5177 GB, free: 16.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002348/0.3407, allocations: 2.087 MB / 0.5198 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001523/0.3422, allocations: 1.352 MB / 0.5211 GB, free: 15.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.3433, allocations: 0.9144 MB / 0.522 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001136/0.3444, allocations: 1.051 MB / 0.523 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003023/0.3447, allocations: 205 kB / 0.5232 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006042/0.3508, allocations: 2.059 MB / 0.5252 GB, free: 14.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004162/0.3512, allocations: 467.9 kB / 0.5256 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009633/0.3522, allocations: 0.9813 MB / 0.5266 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00788/0.3601, allocations: 4.214 MB / 0.5307 GB, free: 11.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3601, allocations: 0 / 0.5307 GB, free: 11.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3601, allocations: 0 / 0.5307 GB, free: 11.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.108e-05/0.3601, allocations: 1.062 kB / 0.5307 GB, free: 11.91 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.003934/0.3641, allocations: 2.421 MB / 0.5331 GB, free: 10.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.3641, allocations: 10.62 kB / 0.5331 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002203/0.3644, allocations: 235 kB / 0.5333 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001598/0.366, allocations: 451.6 kB / 0.5338 GB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001699/0.3677, allocations: 1.071 MB / 0.5348 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.3679, allocations: 178.2 kB / 0.535 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002832/0.3681, allocations: 174 kB / 0.5351 GB, free: 8.953 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002965/0.3711, allocations: 2.217 MB / 0.5373 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.822e-05/0.3712, allocations: 3.938 kB / 0.5373 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001653/0.3713, allocations: 67.44 kB / 0.5374 GB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.944e-05/0.3714, allocations: 42.28 kB / 0.5374 GB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003282/0.3747, allocations: 2.671 MB / 0.54 GB, free: 6.332 MB / 382.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.008584/0.3833, allocations: 7.243 MB / 0.5471 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.3849, allocations: 1.186 MB / 0.5482 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000818/0.3858, allocations: 0.556 MB / 0.5488 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00734/0.3931, allocations: 5.114 MB / 0.5538 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.3932, allocations: 41.81 kB / 0.5538 GB, free: 7.762 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004897/0.3937, allocations: 115 kB / 0.5539 GB, free: 7.648 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 4.007e-06/0.3937, allocations: 0 / 0.5539 GB, free: 7.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=95): time 0.018/0.4117, allocations: 4.874 MB / 0.5587 GB, free: 2.703 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.066e-05/0.4118, allocations: 119.8 kB / 0.5588 GB, free: 2.562 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001637/0.4134, allocations: 1.474 MB / 0.5602 GB, free: 1.074 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.005e-05/0.4135, allocations: 37.7 kB / 0.5603 GB, free: 1.031 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005235/0.414, allocations: 0.9307 MB / 0.5612 GB, free: 104 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000293/0.4143, allocations: 362.4 kB / 0.5615 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004674/0.4148, allocations: 363.3 kB / 0.5619 GB, free: 15.39 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.735e-05/0.4149, allocations: 301.1 kB / 0.5622 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009331/0.4159, allocations: 0.6208 MB / 0.5628 GB, free: 14.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/0.4172, allocations: 1.326 MB / 0.5641 GB, free: 12.83 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002292/0.4195, allocations: 1.92 MB / 0.5659 GB, free: 10.63 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.079e-05/0.4196, allocations: 8 kB / 0.566 GB, free: 10.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005225/0.4248, allocations: 2.369 MB / 0.5683 GB, free: 8.262 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.4248, allocations: 16 kB / 0.5683 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.581e-05/0.4249, allocations: 24 kB / 0.5683 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00246/0.4273, allocations: 381.5 kB / 0.5687 GB, free: 7.848 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002638/0.43, allocations: 0.5629 MB / 0.5692 GB, free: 7.293 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008005/0.438, allocations: 7.913 MB / 0.5769 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.4395, allocations: 82.5 kB / 0.577 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001632/0.4397, allocations: 108.5 kB / 0.5771 GB, free: 14.62 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006768/0.4403, allocations: 371.8 kB / 0.5775 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002788/0.4406, allocations: 127.2 kB / 0.5776 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004461/0.4451, allocations: 1.531 MB / 0.5791 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/0.4451, allocations: 15.94 kB / 0.5791 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4451, allocations: 2.656 kB / 0.5791 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.4452, allocations: 7.984 kB / 0.5791 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006948/0.4521, allocations: 3.012 MB / 0.5821 GB, free: 9.465 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.401e-05/0.4522, allocations: 8 kB / 0.5821 GB, free: 9.457 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008651/0.453, allocations: 214.4 kB / 0.5823 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002632/0.4557, allocations: 407.2 kB / 0.5827 GB, free: 8.844 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.4558, allocations: 43.98 kB / 0.5827 GB, free: 8.801 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007539/0.4634, allocations: 7.715 MB / 0.5902 GB, free: 0.5 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.256e-06/0.4634, allocations: 11.94 kB / 0.5903 GB, free: 500 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00482/0.4682, allocations: 2.162 MB / 0.5924 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000392/0.4686, allocations: 212.2 kB / 0.5926 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001824/0.4688, allocations: 24 kB / 0.5926 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000716/0.4695, allocations: 34.64 kB / 0.5926 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/0.4697, allocations: 107 kB / 0.5927 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.337e-05/0.4698, allocations: 51.98 kB / 0.5928 GB, free: 13.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001151/0.471, allocations: 1.017 MB / 0.5938 GB, free: 12.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.471, allocations: 3.938 kB / 0.5938 GB, free: 12.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002693/0.4737, allocations: 0.8286 MB / 0.5946 GB, free: 11.94 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006358/0.48, allocations: 3.497 MB / 0.598 GB, free: 8.465 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003158/0.4832, allocations: 1.772 MB / 0.5997 GB, free: 6.688 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.4832, allocations: 4 kB / 0.5997 GB, free: 6.684 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001355/0.4846, allocations: 0.997 MB / 0.6007 GB, free: 5.641 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001423/0.486, allocations: 220.7 kB / 0.6009 GB, free: 5.438 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02026/0.5063, allocations: 13.41 MB / 0.614 GB, free: 7.23 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007997/0.5071, allocations: 1.223 MB / 0.6152 GB, free: 5.977 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001019/0.5082, allocations: 324.6 kB / 0.6155 GB, free: 5.672 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008215/0.509, allocations: 0.6542 MB / 0.6162 GB, free: 5.02 MB / 462.1 MB Notification: Performance of SimCode: time 4.51e-07/0.509, allocations: 4 kB / 0.6162 GB, free: 5.016 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07275/0.5818, allocations: 40.25 MB / 0.6555 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.87/26.45, allocations: 10.75 kB / 0.6555 GB, free: 13.14 MB / 0.4981 GB (rm -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.H2O_ElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.H2O_ElectrochemicalCell_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_H2O_ElectrochemicalCell.fmu > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1)