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.00186/0.00186, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002541/0.002542, allocations: 195 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.763/2.763, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.3804/0.3804, allocations: 15.31 MB / 305.7 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002779/0.002779, allocations: 63.89 kB / 370.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1927/0.1955, allocations: 53.6 MB / 424 MB, free: 14.21 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.H2O_ElectrochemicalCell): time 0.6776/0.8732, allocations: 27.8 MB / 451.8 MB, free: 39.23 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02357/0.8968, allocations: 19.37 MB / 471.2 MB, free: 29.89 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001681/0.8986, allocations: 21.31 kB / 471.2 MB, free: 29.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002002/0.9006, allocations: 0.4982 MB / 471.7 MB, free: 29.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00428/0.9049, allocations: 1.228 MB / 473 MB, free: 28.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008027/0.913, allocations: 2.825 MB / 475.8 MB, free: 27.35 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002669/0.9157, allocations: 2.091 MB / 477.9 MB, free: 26.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001736/0.9174, allocations: 1.344 MB / 479.2 MB, free: 25.67 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001363/0.9188, allocations: 0.9017 MB / 480.1 MB, free: 25.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00173/0.9206, allocations: 1.053 MB / 481.2 MB, free: 24.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006087/0.9212, allocations: 199.9 kB / 481.4 MB, free: 24.81 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006794/0.928, allocations: 2.061 MB / 483.4 MB, free: 24.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000638/0.9287, allocations: 476.5 kB / 483.9 MB, free: 23.99 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001366/0.93, allocations: 0.9845 MB / 484.9 MB, free: 23.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009278/0.9393, allocations: 4.157 MB / 489 MB, free: 21.56 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.9394, allocations: 0 / 489 MB, free: 21.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.9394, allocations: 1.344 kB / 489 MB, free: 21.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.982e-05/0.9395, allocations: 7.938 kB / 489 MB, free: 21.55 MB / 366.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.005121/0.9446, allocations: 2.35 MB / 491.4 MB, free: 20.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.9446, allocations: 10.91 kB / 491.4 MB, free: 20.13 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002946/0.9449, allocations: 234.1 kB / 491.6 MB, free: 19.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001765/0.9467, allocations: 443.5 kB / 492.1 MB, free: 19.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001677/0.9484, allocations: 1.039 MB / 493.1 MB, free: 19.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.9485, allocations: 192 kB / 493.3 MB, free: 19.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002145/0.9488, allocations: 167.8 kB / 493.5 MB, free: 19.03 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003035/0.9518, allocations: 2.211 MB / 495.7 MB, free: 18.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/0.9519, allocations: 3.938 kB / 495.7 MB, free: 18.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001518/0.952, allocations: 70.25 kB / 495.7 MB, free: 18.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.952, allocations: 44.27 kB / 495.8 MB, free: 18.03 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003659/0.9557, allocations: 2.673 MB / 498.5 MB, free: 17.18 MB / 366.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.01167/0.9674, allocations: 7.256 MB / 0.4939 GB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.9691, allocations: 1.182 MB / 0.495 GB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007563/0.9699, allocations: 0.5488 MB / 0.4955 GB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007265/0.9771, allocations: 5.132 MB / 0.5006 GB, free: 6.148 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.9772, allocations: 43.06 kB / 0.5006 GB, free: 6.098 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006524/0.9779, allocations: 105.1 kB / 0.5007 GB, free: 5.996 MB / 366.1 MB Notification: Performance of pre-optimization done (n=71): time 3.887e-06/0.9779, allocations: 0 / 0.5007 GB, free: 5.996 MB / 366.1 MB Notification: Performance of matching and sorting (n=95): time 0.01787/0.9958, allocations: 4.805 MB / 0.5054 GB, free: 1.336 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.9958, allocations: 115.9 kB / 0.5055 GB, free: 1.199 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0014/0.9972, allocations: 1.474 MB / 0.5069 GB, free: 15.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001147/0.9974, allocations: 41.7 kB / 0.507 GB, free: 15.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006314/0.998, allocations: 0.8971 MB / 0.5079 GB, free: 14.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003324/0.9984, allocations: 343.3 kB / 0.5082 GB, free: 14.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005107/0.9989, allocations: 355.1 kB / 0.5085 GB, free: 14.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.999, allocations: 305.1 kB / 0.5088 GB, free: 13.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009889/1, allocations: 0.6208 MB / 0.5094 GB, free: 13.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/1.001, allocations: 1.337 MB / 0.5107 GB, free: 11.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002518/1.004, allocations: 1.921 MB / 0.5126 GB, free: 9.211 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/1.004, allocations: 8 kB / 0.5126 GB, free: 9.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005772/1.01, allocations: 2.362 MB / 0.5149 GB, free: 6.824 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.948e-05/1.01, allocations: 22.11 kB / 0.5149 GB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.917e-05/1.01, allocations: 24 kB / 0.515 GB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002564/1.013, allocations: 375.5 kB / 0.5153 GB, free: 6.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002839/1.015, allocations: 0.5617 MB / 0.5159 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008655/1.024, allocations: 7.903 MB / 0.5236 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/1.026, allocations: 79.72 kB / 0.5237 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002081/1.026, allocations: 111.9 kB / 0.5238 GB, free: 13.13 MB / 398.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.00065/1.027, allocations: 374.6 kB / 0.5241 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003284/1.027, allocations: 126.4 kB / 0.5242 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004894/1.032, allocations: 1.534 MB / 0.5257 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/1.032, allocations: 12 kB / 0.5258 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/1.032, allocations: 0 / 0.5258 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/1.032, allocations: 7.969 kB / 0.5258 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007001/1.039, allocations: 3.01 MB / 0.5287 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/1.039, allocations: 8 kB / 0.5287 GB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009099/1.04, allocations: 220.6 kB / 0.5289 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002735/1.043, allocations: 416.5 kB / 0.5293 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000103/1.043, allocations: 43.98 kB / 0.5294 GB, free: 7.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008413/1.051, allocations: 7.707 MB / 0.5369 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/1.051, allocations: 19.94 kB / 0.5369 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005488/1.057, allocations: 2.16 MB / 0.539 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000527/1.057, allocations: 199.6 kB / 0.5392 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003671/1.058, allocations: 27.98 kB / 0.5392 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009483/1.059, allocations: 32 kB / 0.5393 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002501/1.059, allocations: 112.3 kB / 0.5394 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/1.059, allocations: 47.98 kB / 0.5394 GB, free: 12.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001491/1.06, allocations: 1.021 MB / 0.5404 GB, free: 11.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.6e-07/1.06, allocations: 0 / 0.5404 GB, free: 11.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003603/1.064, allocations: 0.808 MB / 0.5412 GB, free: 10.29 MB / 414.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.008121/1.072, allocations: 3.479 MB / 0.5446 GB, free: 6.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004102/1.076, allocations: 1.812 MB / 0.5464 GB, free: 4.844 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/1.076, allocations: 4.938 kB / 0.5464 GB, free: 4.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001521/1.078, allocations: 0.9996 MB / 0.5473 GB, free: 3.789 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001803/1.08, allocations: 241 kB / 0.5476 GB, free: 3.559 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02474/1.105, allocations: 14.03 MB / 0.5613 GB, free: 4.262 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009774/1.106, allocations: 1.223 MB / 0.5625 GB, free: 3.012 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001392/1.107, allocations: 322.4 kB / 0.5628 GB, free: 2.691 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008783/1.108, allocations: 0.671 MB / 0.5634 GB, free: 2.02 MB / 430.1 MB Notification: Performance of SimCode: time 1.132e-06/1.108, allocations: 0 / 0.5634 GB, free: 2.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2668/1.375, allocations: 39.7 MB / 0.6022 GB, free: 136.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.85/29.22, allocations: 2.625 kB / 0.6022 GB, free: 136.3 MB / 462.1 MB (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)