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.008788/0.008787, allocations: 98.55 kB / 15.73 MB, free: 6.035 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.002053/0.002053, allocations: 193.3 kB / 16.67 MB, free: 5.961 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2097/0.2097, allocations: 15.33 MB / 305.9 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 59.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2449, allocations: 53.6 MB / 478.3 MB, free: 25.62 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.ElectrochemicalCell): time 0.03381/0.2788, allocations: 29.84 MB / 0.4962 GB, free: 4.875 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02934/0.3081, allocations: 28.69 MB / 0.5243 GB, free: 8.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001987/0.3102, allocations: 23.88 kB / 0.5243 GB, free: 8.047 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002093/0.3123, allocations: 0.6514 MB / 0.5249 GB, free: 7.391 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007157/0.3194, allocations: 2.208 MB / 0.5271 GB, free: 5.168 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01104/0.3305, allocations: 3.883 MB / 0.5309 GB, free: 1.262 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004726/0.3353, allocations: 2.848 MB / 0.5337 GB, free: 14.4 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002186/0.3375, allocations: 1.681 MB / 0.5353 GB, free: 12.67 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00172/0.3392, allocations: 1.321 MB / 0.5366 GB, free: 11.35 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002645/0.3419, allocations: 1.487 MB / 0.538 GB, free: 9.855 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007273/0.3426, allocations: 260 kB / 0.5383 GB, free: 9.602 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0115/0.3541, allocations: 3.109 MB / 0.5413 GB, free: 6.488 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001174/0.3553, allocations: 0.5998 MB / 0.5419 GB, free: 5.887 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002311/0.3577, allocations: 1.307 MB / 0.5432 GB, free: 4.574 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01466/0.3723, allocations: 6.023 MB / 0.5491 GB, free: 14.53 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.3724, allocations: 0 / 0.5491 GB, free: 14.53 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3724, allocations: 0 / 0.5491 GB, free: 14.53 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001258/0.3725, allocations: 0 / 0.5491 GB, free: 14.53 MB / 430.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.006156/0.3787, allocations: 3.163 MB / 0.5522 GB, free: 11.29 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.3788, allocations: 12.03 kB / 0.5522 GB, free: 11.28 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003226/0.3791, allocations: 308.3 kB / 0.5525 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002234/0.3813, allocations: 0.5492 MB / 0.553 GB, free: 10.42 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002211/0.3835, allocations: 1.307 MB / 0.5543 GB, free: 9.062 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/0.3838, allocations: 227.8 kB / 0.5545 GB, free: 8.824 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003526/0.3842, allocations: 227.9 kB / 0.5547 GB, free: 8.602 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004073/0.3882, allocations: 2.659 MB / 0.5573 GB, free: 5.852 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.165e-05/0.3883, allocations: 3.938 kB / 0.5573 GB, free: 5.848 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002063/0.3885, allocations: 92 kB / 0.5574 GB, free: 5.758 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.788e-05/0.3886, allocations: 52 kB / 0.5575 GB, free: 5.707 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004988/0.3936, allocations: 3.31 MB / 0.5607 GB, free: 2.395 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.01325/0.4068, allocations: 8.674 MB / 0.5692 GB, free: 9.375 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002838/0.4097, allocations: 2.001 MB / 0.5711 GB, free: 7.266 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001402/0.4111, allocations: 0.9212 MB / 0.572 GB, free: 6.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01345/0.4246, allocations: 7.892 MB / 0.5797 GB, free: 13.59 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.01e-05/0.4247, allocations: 51.86 kB / 0.5798 GB, free: 13.54 MB / 462.1 MB Notification: Performance of pre-optimization done (n=128): time 5.29e-06/0.4248, allocations: 0 / 0.5798 GB, free: 13.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.03055/0.4553, allocations: 8.262 MB / 0.5878 GB, free: 5.188 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.087e-05/0.4554, allocations: 99.11 kB / 0.5879 GB, free: 5.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001713/0.4571, allocations: 1.354 MB / 0.5892 GB, free: 3.699 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001638/0.4573, allocations: 57.7 kB / 0.5893 GB, free: 3.637 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006965/0.458, allocations: 1.081 MB / 0.5904 GB, free: 2.543 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000591/0.4586, allocations: 0.6625 MB / 0.591 GB, free: 1.875 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000651/0.4593, allocations: 485 kB / 0.5915 GB, free: 1.395 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.4594, allocations: 305.1 kB / 0.5918 GB, free: 1.094 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/0.4608, allocations: 0.817 MB / 0.5926 GB, free: 280 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001969/0.4628, allocations: 1.658 MB / 0.5942 GB, free: 14.23 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003755/0.4665, allocations: 2.598 MB / 0.5967 GB, free: 11.26 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.637e-05/0.4666, allocations: 8 kB / 0.5967 GB, free: 11.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007235/0.4738, allocations: 3.054 MB / 0.5997 GB, free: 8.176 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.4739, allocations: 16 kB / 0.5997 GB, free: 8.16 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.442e-05/0.4739, allocations: 28 kB / 0.5997 GB, free: 8.133 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003157/0.4771, allocations: 0.5146 MB / 0.6002 GB, free: 7.605 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003869/0.481, allocations: 0.8074 MB / 0.601 GB, free: 6.797 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.22/0.701, allocations: 8.029 MB / 0.6089 GB, free: 112 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/0.7028, allocations: 101 kB / 0.609 GB, free: 112 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003096/0.7031, allocations: 144.2 kB / 0.6091 GB, free: 112 MB / 478.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.0008772/0.704, allocations: 448.8 kB / 0.6095 GB, free: 111.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004239/0.7045, allocations: 180.5 kB / 0.6097 GB, free: 111.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00633/0.7108, allocations: 2.572 MB / 0.6122 GB, free: 111.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.88e-05/0.7108, allocations: 18.84 kB / 0.6122 GB, free: 111.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.7108, allocations: 1.094 kB / 0.6122 GB, free: 111.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.456e-05/0.7109, allocations: 10.03 kB / 0.6123 GB, free: 111.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009391/0.7203, allocations: 4.776 MB / 0.6169 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.828e-05/0.7203, allocations: 14.84 kB / 0.6169 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001743/0.7221, allocations: 414 kB / 0.6173 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003168/0.7253, allocations: 0.5496 MB / 0.6179 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001913/0.7255, allocations: 88.58 kB / 0.6179 GB, free: 109.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006077/0.7315, allocations: 7.824 MB / 0.6256 GB, free: 101.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.127e-05/0.7316, allocations: 22.59 kB / 0.6256 GB, free: 101.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006049/0.7376, allocations: 3.469 MB / 0.629 GB, free: 100 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003779/0.738, allocations: 252 kB / 0.6292 GB, free: 99.87 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002372/0.7383, allocations: 67.52 kB / 0.6293 GB, free: 99.83 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009594/0.7392, allocations: 50.53 kB / 0.6293 GB, free: 99.81 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002451/0.7395, allocations: 190.1 kB / 0.6295 GB, free: 99.76 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/0.7396, allocations: 96.56 kB / 0.6296 GB, free: 99.75 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001029/0.7407, allocations: 0.8884 MB / 0.6305 GB, free: 99.37 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.7407, allocations: 0 / 0.6305 GB, free: 99.37 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003285/0.744, allocations: 1.217 MB / 0.6317 GB, free: 99.26 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.008626/0.7526, allocations: 5.228 MB / 0.6368 GB, free: 96.75 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005069/0.7577, allocations: 2.489 MB / 0.6392 GB, free: 95.77 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/0.7578, allocations: 1.75 kB / 0.6392 GB, free: 95.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0021/0.7599, allocations: 1.429 MB / 0.6406 GB, free: 94.97 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002001/0.7619, allocations: 347.7 kB / 0.6409 GB, free: 94.84 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02441/0.7863, allocations: 16.97 MB / 0.6575 GB, free: 83.65 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007617/0.7871, allocations: 1.43 MB / 0.6589 GB, free: 82.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001529/0.7887, allocations: 459.8 kB / 0.6593 GB, free: 82.18 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001016/0.7897, allocations: 0.9718 MB / 0.6603 GB, free: 81.21 MB / 478.1 MB Notification: Performance of SimCode: time 7.01e-07/0.7897, allocations: 0 / 0.6603 GB, free: 81.21 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07853/0.8682, allocations: 57.71 MB / 0.7167 GB, free: 24.34 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.85/18.72, allocations: 3.781 kB / 0.7167 GB, free: 24.34 MB / 478.1 MB (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)