Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001737/0.001737, allocations: 215.2 kB / 22.25 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.351/1.351, allocations: 230.6 MB / 256 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1255/0.1255, allocations: 23.86 MB / 336.3 MB, free: 11.22 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 67.03 kB / 471.2 MB, free: 7.738 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2697, allocations: 59.86 MB / 0.5186 GB, free: 9.582 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.Obsolete.Examples.H2O_ElectrochemicalCell): time 0.03433/0.304, allocations: 29.1 MB / 0.547 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02358/0.3276, allocations: 19.53 MB / 0.5661 GB, free: 8.93 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001314/0.3289, allocations: 27.75 kB / 0.5661 GB, free: 8.902 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.3302, allocations: 0.5024 MB / 0.5666 GB, free: 8.508 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003252/0.3335, allocations: 1.24 MB / 0.5678 GB, free: 7.453 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007533/0.341, allocations: 2.892 MB / 0.5706 GB, free: 4.887 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002785/0.3438, allocations: 2.094 MB / 0.5727 GB, free: 2.781 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001253/0.3451, allocations: 1.077 MB / 0.5737 GB, free: 1.656 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009521/0.346, allocations: 0.9387 MB / 0.5746 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001367/0.3474, allocations: 1.066 MB / 0.5757 GB, free: 15.64 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002655/0.3476, allocations: 200 kB / 0.5759 GB, free: 15.45 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005208/0.3529, allocations: 2.079 MB / 0.5779 GB, free: 13.37 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004069/0.3533, allocations: 474.5 kB / 0.5783 GB, free: 12.9 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008826/0.3541, allocations: 0.9839 MB / 0.5793 GB, free: 11.91 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006422/0.3606, allocations: 4.354 MB / 0.5836 GB, free: 7.543 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3606, allocations: 3.938 kB / 0.5836 GB, free: 7.539 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3606, allocations: 4 kB / 0.5836 GB, free: 7.535 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.902e-05/0.3606, allocations: 0 / 0.5836 GB, free: 7.535 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.003996/0.3646, allocations: 2.327 MB / 0.5858 GB, free: 5.164 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.3646, allocations: 12.03 kB / 0.5858 GB, free: 5.152 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002765/0.3649, allocations: 236.8 kB / 0.5861 GB, free: 4.91 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/0.3665, allocations: 451 kB / 0.5865 GB, free: 4.469 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001834/0.3683, allocations: 1.019 MB / 0.5875 GB, free: 3.418 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001946/0.3685, allocations: 234.2 kB / 0.5877 GB, free: 3.164 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002573/0.3687, allocations: 168 kB / 0.5879 GB, free: 3 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003234/0.372, allocations: 2.241 MB / 0.5901 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.614e-05/0.372, allocations: 7.922 kB / 0.5901 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/0.3722, allocations: 72 kB / 0.5901 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.49e-05/0.3722, allocations: 40 kB / 0.5902 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003867/0.3761, allocations: 2.707 MB / 0.5928 GB, free: 13.86 MB / 446.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.01072/0.3868, allocations: 7.222 MB / 0.5999 GB, free: 6.363 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001678/0.3885, allocations: 0.983 MB / 0.6008 GB, free: 5.355 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008355/0.3893, allocations: 0.5213 MB / 0.6013 GB, free: 4.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006885/0.3962, allocations: 3.153 MB / 0.6044 GB, free: 1.645 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/0.3962, allocations: 47.14 kB / 0.6045 GB, free: 1.59 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004256/0.3967, allocations: 119 kB / 0.6046 GB, free: 1.473 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.144e-06/0.3967, allocations: 0 / 0.6046 GB, free: 1.473 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01799/0.4146, allocations: 4.562 MB / 0.609 GB, free: 12.85 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.13e-05/0.4147, allocations: 111.8 kB / 0.6091 GB, free: 12.71 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001755/0.4165, allocations: 1.505 MB / 0.6106 GB, free: 11.19 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.841e-05/0.4166, allocations: 41.7 kB / 0.6107 GB, free: 11.14 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006449/0.4172, allocations: 0.9201 MB / 0.6116 GB, free: 10.21 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002998/0.4175, allocations: 361 kB / 0.6119 GB, free: 9.855 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004795/0.418, allocations: 363.3 kB / 0.6122 GB, free: 9.492 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4181, allocations: 301.1 kB / 0.6125 GB, free: 9.195 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009945/0.4191, allocations: 0.6325 MB / 0.6132 GB, free: 8.562 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001565/0.4207, allocations: 1.341 MB / 0.6145 GB, free: 6.891 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002491/0.4232, allocations: 1.94 MB / 0.6164 GB, free: 4.621 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/0.4232, allocations: 4 kB / 0.6164 GB, free: 4.617 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005761/0.4289, allocations: 2.391 MB / 0.6187 GB, free: 2.203 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.429e-05/0.429, allocations: 19.94 kB / 0.6187 GB, free: 2.184 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-05/0.429, allocations: 24 kB / 0.6187 GB, free: 2.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002542/0.4315, allocations: 375 kB / 0.6191 GB, free: 1.781 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002666/0.4342, allocations: 0.5617 MB / 0.6196 GB, free: 1.219 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00881/0.443, allocations: 7.493 MB / 0.627 GB, free: 9.211 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/0.4443, allocations: 79.86 kB / 0.627 GB, free: 9.133 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001814/0.4445, allocations: 104 kB / 0.6271 GB, free: 9.031 MB / 478.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.0006325/0.4451, allocations: 377.6 kB / 0.6275 GB, free: 8.652 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002765/0.4454, allocations: 127.2 kB / 0.6276 GB, free: 8.527 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004671/0.4501, allocations: 1.531 MB / 0.6291 GB, free: 6.973 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.4501, allocations: 11.94 kB / 0.6291 GB, free: 6.961 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.4501, allocations: 4 kB / 0.6291 GB, free: 6.957 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.4501, allocations: 3.984 kB / 0.6291 GB, free: 6.953 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006813/0.4569, allocations: 2.983 MB / 0.632 GB, free: 3.82 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/0.457, allocations: 11.94 kB / 0.6321 GB, free: 3.809 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008446/0.4578, allocations: 219.8 kB / 0.6323 GB, free: 3.594 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002604/0.4604, allocations: 404.9 kB / 0.6326 GB, free: 3.18 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.345e-05/0.4605, allocations: 39.98 kB / 0.6327 GB, free: 3.141 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007997/0.4685, allocations: 7.303 MB / 0.6398 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.747e-06/0.4685, allocations: 11.94 kB / 0.6398 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004951/0.4734, allocations: 2.16 MB / 0.6419 GB, free: 9.027 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003005/0.4737, allocations: 131.2 kB / 0.6421 GB, free: 8.898 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001723/0.4739, allocations: 27.98 kB / 0.6421 GB, free: 8.871 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006694/0.4746, allocations: 32 kB / 0.6421 GB, free: 8.84 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001806/0.4748, allocations: 116.2 kB / 0.6422 GB, free: 8.727 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.329e-05/0.4749, allocations: 47.98 kB / 0.6423 GB, free: 8.68 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00125/0.4761, allocations: 1.036 MB / 0.6433 GB, free: 7.637 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4761, allocations: 0 / 0.6433 GB, free: 7.637 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002543/0.4786, allocations: 0.826 MB / 0.6441 GB, free: 6.809 MB / 494.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.006761/0.4854, allocations: 3.508 MB / 0.6475 GB, free: 3.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003471/0.4889, allocations: 1.703 MB / 0.6492 GB, free: 1.438 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/0.4889, allocations: 4.188 kB / 0.6492 GB, free: 1.434 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001353/0.4902, allocations: 0.9528 MB / 0.6501 GB, free: 440 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.4916, allocations: 239.8 kB / 0.6504 GB, free: 208 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02231/0.514, allocations: 13.46 MB / 0.6635 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008989/0.5149, allocations: 1.223 MB / 0.6647 GB, free: 460 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0009727/0.5158, allocations: 330.5 kB / 0.665 GB, free: 124 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008724/0.5167, allocations: 0.6594 MB / 0.6657 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of SimCode: time 1.022e-06/0.5167, allocations: 0 / 0.6657 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09237/0.6091, allocations: 42.33 MB / 0.707 GB, free: 5.332 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.71/27.32, allocations: 13.41 kB / 0.707 GB, free: 5.324 MB / 0.545 GB " [Timeout remaining time 633] (rm -f Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.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_Obsolete_Examples_H2O_ElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 29.905925969993405] Failed to read output from testmodel.py, exit status != 0: 27.463990980002563 27.487792634 27.122772835 Calling exit ...