Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.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.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_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.006894/0.006895, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001956/0.001956, allocations: 190.1 kB / 16.67 MB, free: 5.875 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.509/1.509, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09298/0.09298, allocations: 15.31 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 59.91 kB / 424.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1035, allocations: 53.61 MB / 478.3 MB, free: 6.297 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.ElectrochemicalCell): time 0.04428/0.1478, allocations: 29.96 MB / 0.4963 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2581/0.406, allocations: 28.69 MB / 0.5244 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001532/0.4075, allocations: 28.44 kB / 0.5244 GB, free: 12.94 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002224/0.4098, allocations: 0.6567 MB / 0.525 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00824/0.418, allocations: 2.182 MB / 0.5272 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01203/0.4301, allocations: 3.847 MB / 0.5309 GB, free: 9.047 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0046/0.4347, allocations: 2.855 MB / 0.5337 GB, free: 7.641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002784/0.4376, allocations: 1.678 MB / 0.5354 GB, free: 6.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002038/0.4396, allocations: 1.315 MB / 0.5366 GB, free: 6.438 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002893/0.4425, allocations: 1.494 MB / 0.5381 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000621/0.4432, allocations: 263.1 kB / 0.5383 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0136/0.4568, allocations: 3.104 MB / 0.5414 GB, free: 4.406 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0012/0.458, allocations: 0.6091 MB / 0.542 GB, free: 3.906 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002667/0.4607, allocations: 1.301 MB / 0.5432 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01948/0.4802, allocations: 6.021 MB / 0.5491 GB, free: 14.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.367e-05/0.4803, allocations: 0 / 0.5491 GB, free: 14.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4803, allocations: 0 / 0.5491 GB, free: 14.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.645e-05/0.4804, allocations: 2.688 kB / 0.5491 GB, free: 14.39 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.006924/0.4873, allocations: 3.172 MB / 0.5522 GB, free: 11.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.4874, allocations: 14.69 kB / 0.5522 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003882/0.4878, allocations: 301.1 kB / 0.5525 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002491/0.4903, allocations: 0.5531 MB / 0.5531 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002425/0.4927, allocations: 1.307 MB / 0.5543 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002695/0.493, allocations: 228.1 kB / 0.5546 GB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004562/0.4935, allocations: 224 kB / 0.5548 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005104/0.4986, allocations: 2.672 MB / 0.5574 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.314e-05/0.4987, allocations: 0 / 0.5574 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002109/0.4989, allocations: 88 kB / 0.5575 GB, free: 5.641 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.085e-05/0.4989, allocations: 54.62 kB / 0.5575 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005719/0.5047, allocations: 3.306 MB / 0.5607 GB, free: 2.281 MB / 398.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.01605/0.5207, allocations: 8.665 MB / 0.5692 GB, free: 9.312 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003029/0.5238, allocations: 1.994 MB / 0.5712 GB, free: 7.223 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/0.5254, allocations: 0.9251 MB / 0.5721 GB, free: 6.293 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.013/0.5384, allocations: 7.901 MB / 0.5798 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.886e-05/0.5385, allocations: 47.88 kB / 0.5798 GB, free: 13.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=128): time 4.489e-06/0.5385, allocations: 0 / 0.5798 GB, free: 13.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.03291/0.5714, allocations: 8.256 MB / 0.5879 GB, free: 5.246 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.098e-05/0.5715, allocations: 95.11 kB / 0.588 GB, free: 5.133 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002222/0.5738, allocations: 1.354 MB / 0.5893 GB, free: 3.762 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003022/0.5741, allocations: 57.7 kB / 0.5893 GB, free: 3.699 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008698/0.575, allocations: 1.081 MB / 0.5904 GB, free: 2.605 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007658/0.5757, allocations: 0.6611 MB / 0.591 GB, free: 1.941 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007632/0.5765, allocations: 485 kB / 0.5915 GB, free: 1.461 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.5767, allocations: 301.1 kB / 0.5918 GB, free: 1.164 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001483/0.5782, allocations: 0.814 MB / 0.5926 GB, free: 356 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002336/0.5805, allocations: 1.654 MB / 0.5942 GB, free: 14.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004128/0.5846, allocations: 2.607 MB / 0.5968 GB, free: 11.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-05/0.5847, allocations: 8 kB / 0.5968 GB, free: 11.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007144/0.5918, allocations: 3.051 MB / 0.5997 GB, free: 8.359 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/0.5919, allocations: 16 kB / 0.5998 GB, free: 8.344 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.84e-05/0.5919, allocations: 28 kB / 0.5998 GB, free: 8.316 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00306/0.595, allocations: 0.5169 MB / 0.6003 GB, free: 7.797 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003688/0.5987, allocations: 0.7984 MB / 0.6011 GB, free: 7.008 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01026/0.609, allocations: 8.041 MB / 0.6089 GB, free: 14.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/0.6109, allocations: 94.61 kB / 0.609 GB, free: 14.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000279/0.6112, allocations: 140 kB / 0.6091 GB, free: 14.16 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * 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,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009647/0.6122, allocations: 463.4 kB / 0.6096 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004175/0.6126, allocations: 178.8 kB / 0.6098 GB, free: 13.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006732/0.6193, allocations: 2.576 MB / 0.6123 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-05/0.6194, allocations: 16 kB / 0.6123 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.6194, allocations: 7.938 kB / 0.6123 GB, free: 10.97 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.273e-05/0.6194, allocations: 10.62 kB / 0.6123 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.63, allocations: 4.779 MB / 0.617 GB, free: 5.973 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.597e-05/0.6301, allocations: 10.62 kB / 0.617 GB, free: 5.965 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00164/0.6317, allocations: 422.1 kB / 0.6174 GB, free: 5.555 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003297/0.635, allocations: 0.5446 MB / 0.6179 GB, free: 5.004 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002875/0.6354, allocations: 83.89 kB / 0.618 GB, free: 4.922 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009959/0.6453, allocations: 7.841 MB / 0.6257 GB, free: 12.49 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.64e-05/0.6454, allocations: 19.94 kB / 0.6257 GB, free: 12.47 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007564/0.653, allocations: 3.47 MB / 0.6291 GB, free: 8.848 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005723/0.6536, allocations: 255.8 kB / 0.6293 GB, free: 8.578 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002613/0.6538, allocations: 51.98 kB / 0.6294 GB, free: 8.527 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000954/0.6548, allocations: 48 kB / 0.6294 GB, free: 8.48 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000343/0.6552, allocations: 194.1 kB / 0.6296 GB, free: 8.297 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001793/0.6553, allocations: 98.84 kB / 0.6297 GB, free: 8.203 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001271/0.6566, allocations: 0.885 MB / 0.6305 GB, free: 7.316 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.515e-06/0.6566, allocations: 2.656 kB / 0.6305 GB, free: 7.316 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004208/0.6608, allocations: 1.219 MB / 0.6317 GB, free: 6.094 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.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 (198): * Single equations (assignments): 192 * 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,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0105/0.6714, allocations: 5.232 MB / 0.6368 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005335/0.6767, allocations: 2.486 MB / 0.6393 GB, free: 14.21 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.575e-06/0.6768, allocations: 0 / 0.6393 GB, free: 14.21 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002307/0.6791, allocations: 1.439 MB / 0.6407 GB, free: 12.72 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/0.6811, allocations: 350.4 kB / 0.641 GB, free: 12.41 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03054/0.7116, allocations: 16.96 MB / 0.6576 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001381/0.7131, allocations: 1.433 MB / 0.659 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001714/0.7148, allocations: 459.5 kB / 0.6594 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001507/0.7163, allocations: 0.9724 MB / 0.6604 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of SimCode: time 6.91e-07/0.7163, allocations: 0 / 0.6604 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3716/1.088, allocations: 57.69 MB / 0.7167 GB, free: 185.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.88/19.97, allocations: 13.75 kB / 0.7167 GB, free: 185.4 MB / 0.545 GB (rm -f Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.ElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.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_ElectrochemicalCell.fmu > Chemical_Chemical.Examples.ElectrochemicalCell.pipe 2>&1)