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.007855/0.007855, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002037/0.002037, allocations: 197.5 kB / 16.67 MB, free: 5.934 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.492/1.492, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08746/0.08746, allocations: 15.31 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 67.84 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09043/0.09235, allocations: 53.59 MB / 478.3 MB, free: 6.293 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.04072/0.1331, allocations: 28.22 MB / 0.4946 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.22/0.3532, allocations: 19.36 MB / 0.5135 GB, free: 17.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001087/0.3543, allocations: 21.38 kB / 0.5136 GB, free: 17.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001287/0.3556, allocations: 0.494 MB / 0.514 GB, free: 17.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002901/0.3585, allocations: 1.229 MB / 0.5152 GB, free: 17.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007006/0.3655, allocations: 2.828 MB / 0.518 GB, free: 16.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002694/0.3682, allocations: 2.095 MB / 0.5201 GB, free: 16.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002066/0.3703, allocations: 1.352 MB / 0.5214 GB, free: 15.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0015/0.3718, allocations: 0.9066 MB / 0.5223 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001814/0.3737, allocations: 1.051 MB / 0.5233 GB, free: 14.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005867/0.3743, allocations: 199.4 kB / 0.5235 GB, free: 14.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006629/0.3809, allocations: 2.053 MB / 0.5255 GB, free: 14.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006129/0.3815, allocations: 471.3 kB / 0.5259 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001425/0.383, allocations: 0.9856 MB / 0.5269 GB, free: 13.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008611/0.3916, allocations: 4.221 MB / 0.531 GB, free: 12.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.3916, allocations: 1.219 kB / 0.531 GB, free: 12.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3916, allocations: 0 / 0.531 GB, free: 12.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.144e-05/0.3917, allocations: 0 / 0.531 GB, free: 12.02 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.005029/0.3968, allocations: 2.406 MB / 0.5334 GB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.3968, allocations: 9.25 kB / 0.5334 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003494/0.3972, allocations: 246.8 kB / 0.5336 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001829/0.399, allocations: 447.2 kB / 0.534 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001728/0.4008, allocations: 1.079 MB / 0.5351 GB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/0.4009, allocations: 185.8 kB / 0.5353 GB, free: 9.074 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003013/0.4012, allocations: 173 kB / 0.5354 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002889/0.4041, allocations: 2.205 MB / 0.5376 GB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.404e-05/0.4042, allocations: 2.938 kB / 0.5376 GB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001523/0.4043, allocations: 70.41 kB / 0.5377 GB, free: 7.621 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.481e-05/0.4044, allocations: 42.62 kB / 0.5377 GB, free: 7.621 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003236/0.4076, allocations: 2.674 MB / 0.5403 GB, free: 6.398 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.009066/0.4167, allocations: 7.243 MB / 0.5474 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001924/0.4186, allocations: 1.185 MB / 0.5485 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009133/0.4196, allocations: 0.5495 MB / 0.5491 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008743/0.4283, allocations: 5.123 MB / 0.5541 GB, free: 7.781 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.947e-05/0.4284, allocations: 48.47 kB / 0.5541 GB, free: 7.73 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005992/0.429, allocations: 115 kB / 0.5542 GB, free: 7.617 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 3.387e-06/0.429, allocations: 0 / 0.5542 GB, free: 7.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=95): time 0.02059/0.4496, allocations: 4.865 MB / 0.559 GB, free: 2.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.878e-05/0.4497, allocations: 115.8 kB / 0.5591 GB, free: 2.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00199/0.4517, allocations: 1.478 MB / 0.5605 GB, free: 1.051 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001318/0.4519, allocations: 41.7 kB / 0.5606 GB, free: 1.004 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007192/0.4526, allocations: 0.9202 MB / 0.5615 GB, free: 84 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000387/0.453, allocations: 361.1 kB / 0.5618 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005378/0.4535, allocations: 363.3 kB / 0.5622 GB, free: 15.37 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4537, allocations: 301.1 kB / 0.5625 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.4547, allocations: 0.6247 MB / 0.5631 GB, free: 14.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/0.4564, allocations: 1.331 MB / 0.5644 GB, free: 12.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002731/0.4592, allocations: 1.918 MB / 0.5662 GB, free: 10.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.351e-05/0.4592, allocations: 8 kB / 0.5662 GB, free: 10.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005942/0.4652, allocations: 2.362 MB / 0.5686 GB, free: 8.242 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.712e-05/0.4652, allocations: 19.94 kB / 0.5686 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.382e-05/0.4653, allocations: 26.66 kB / 0.5686 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002727/0.468, allocations: 382.2 kB / 0.569 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002688/0.4707, allocations: 0.5696 MB / 0.5695 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009548/0.4803, allocations: 7.904 MB / 0.5772 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.4817, allocations: 82.52 kB / 0.5773 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/0.4819, allocations: 104 kB / 0.5774 GB, free: 14.61 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.0006854/0.4826, allocations: 375.7 kB / 0.5778 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002997/0.4829, allocations: 131.8 kB / 0.5779 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004911/0.4879, allocations: 1.537 MB / 0.5794 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/0.4879, allocations: 13.34 kB / 0.5794 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.4879, allocations: 4 kB / 0.5794 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.4879, allocations: 3.984 kB / 0.5794 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007231/0.4952, allocations: 3.006 MB / 0.5824 GB, free: 9.445 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.286e-05/0.4952, allocations: 8 kB / 0.5824 GB, free: 9.438 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008716/0.4961, allocations: 215.7 kB / 0.5826 GB, free: 9.227 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002993/0.4991, allocations: 407.1 kB / 0.583 GB, free: 8.82 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/0.4992, allocations: 43.98 kB / 0.583 GB, free: 8.777 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008851/0.5081, allocations: 7.707 MB / 0.5905 GB, free: 500 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.769e-06/0.5081, allocations: 11.94 kB / 0.5905 GB, free: 488 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005406/0.5135, allocations: 2.168 MB / 0.5927 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004362/0.514, allocations: 212.2 kB / 0.5929 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001882/0.5142, allocations: 31.98 kB / 0.5929 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007268/0.5149, allocations: 30.59 kB / 0.5929 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/0.5151, allocations: 115 kB / 0.593 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-05/0.5152, allocations: 51.98 kB / 0.5931 GB, free: 13.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001358/0.5166, allocations: 1.009 MB / 0.5941 GB, free: 12.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5166, allocations: 2.656 kB / 0.5941 GB, free: 12.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003083/0.5197, allocations: 0.8221 MB / 0.5949 GB, free: 11.93 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.007508/0.5272, allocations: 3.497 MB / 0.5983 GB, free: 8.445 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003775/0.531, allocations: 1.771 MB / 0.6 GB, free: 6.672 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.5311, allocations: 0 / 0.6 GB, free: 6.672 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00157/0.5326, allocations: 0.9979 MB / 0.601 GB, free: 5.625 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.5342, allocations: 244.8 kB / 0.6012 GB, free: 5.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02546/0.5597, allocations: 13.39 MB / 0.6143 GB, free: 7.223 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.5608, allocations: 1.219 MB / 0.6155 GB, free: 5.973 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001101/0.5619, allocations: 330.2 kB / 0.6158 GB, free: 5.664 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009359/0.5629, allocations: 0.662 MB / 0.6165 GB, free: 5.004 MB / 462.1 MB Notification: Performance of SimCode: time 8.32e-07/0.5629, allocations: 0 / 0.6165 GB, free: 5.004 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08974/0.6526, allocations: 40.26 MB / 0.6558 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.64/27.3, allocations: 4.062 kB / 0.6558 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)