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.001332/0.001332, allocations: 107.4 kB / 16.45 MB, free: 6.5 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.001347/0.001347, allocations: 212.9 kB / 19.43 MB, free: 3.66 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.441/1.441, allocations: 230.6 MB / 252.8 MB, free: 8.996 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.1317/0.1317, allocations: 23.84 MB / 332.7 MB, free: 12.38 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.002011/0.002011, allocations: 67.89 kB / 466 MB, free: 10.12 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2947, allocations: 59.82 MB / 0.5135 GB, free: 8.832 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.04013/0.3348, allocations: 28.88 MB / 0.5417 GB, free: 12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02565/0.3605, allocations: 19.48 MB / 0.5607 GB, free: 10.05 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001486/0.3619, allocations: 31.75 kB / 0.5607 GB, free: 10.02 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001483/0.3634, allocations: 0.4945 MB / 0.5612 GB, free: 9.629 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00363/0.367, allocations: 1.239 MB / 0.5624 GB, free: 8.578 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007589/0.3746, allocations: 2.85 MB / 0.5652 GB, free: 6.234 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003258/0.3779, allocations: 2.098 MB / 0.5672 GB, free: 4.258 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001494/0.3794, allocations: 1.107 MB / 0.5683 GB, free: 3.102 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001133/0.3805, allocations: 0.931 MB / 0.5692 GB, free: 2.168 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001401/0.3819, allocations: 1.066 MB / 0.5703 GB, free: 1.098 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002915/0.3822, allocations: 200 kB / 0.5705 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006077/0.3883, allocations: 2.083 MB / 0.5725 GB, free: 14.82 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005077/0.3888, allocations: 478.5 kB / 0.573 GB, free: 14.35 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00105/0.3899, allocations: 0.9723 MB / 0.5739 GB, free: 13.37 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008699/0.3985, allocations: 4.369 MB / 0.5782 GB, free: 8.984 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3986, allocations: 4 kB / 0.5782 GB, free: 8.98 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3986, allocations: 4 kB / 0.5782 GB, free: 8.977 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.621e-05/0.3986, allocations: 0 / 0.5782 GB, free: 8.977 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.004765/0.4034, allocations: 2.403 MB / 0.5805 GB, free: 6.512 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.4034, allocations: 8.031 kB / 0.5805 GB, free: 6.504 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002895/0.4037, allocations: 240.8 kB / 0.5808 GB, free: 6.258 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001717/0.4054, allocations: 447 kB / 0.5812 GB, free: 5.82 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001792/0.4072, allocations: 1.08 MB / 0.5822 GB, free: 4.695 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.4074, allocations: 194.8 kB / 0.5824 GB, free: 4.492 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000272/0.4077, allocations: 164 kB / 0.5826 GB, free: 4.332 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003441/0.4111, allocations: 2.218 MB / 0.5848 GB, free: 2.047 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.229e-05/0.4111, allocations: 3.938 kB / 0.5848 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001757/0.4113, allocations: 68 kB / 0.5848 GB, free: 1.977 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.611e-05/0.4113, allocations: 40 kB / 0.5849 GB, free: 1.938 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004133/0.4155, allocations: 2.68 MB / 0.5875 GB, free: 15.25 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.01134/0.4268, allocations: 7.275 MB / 0.5946 GB, free: 7.703 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001859/0.4287, allocations: 1.126 MB / 0.5957 GB, free: 6.512 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008591/0.4295, allocations: 0.5144 MB / 0.5962 GB, free: 5.984 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008029/0.4376, allocations: 5.16 MB / 0.6012 GB, free: 312 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.4376, allocations: 47.11 kB / 0.6013 GB, free: 256 kB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004594/0.4381, allocations: 115 kB / 0.6014 GB, free: 140 kB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.615e-06/0.4381, allocations: 0 / 0.6014 GB, free: 140 kB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01872/0.4568, allocations: 4.86 MB / 0.6061 GB, free: 11.14 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.514e-05/0.4569, allocations: 119.8 kB / 0.6062 GB, free: 11 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001861/0.4587, allocations: 1.478 MB / 0.6077 GB, free: 9.508 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.853e-05/0.4588, allocations: 41.7 kB / 0.6077 GB, free: 9.461 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007029/0.4595, allocations: 0.92 MB / 0.6086 GB, free: 8.527 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003252/0.4599, allocations: 361 kB / 0.609 GB, free: 8.172 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005846/0.4604, allocations: 363.3 kB / 0.6093 GB, free: 7.809 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.4606, allocations: 301.1 kB / 0.6096 GB, free: 7.512 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001049/0.4616, allocations: 0.6169 MB / 0.6102 GB, free: 6.895 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001669/0.4633, allocations: 1.341 MB / 0.6115 GB, free: 5.223 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002658/0.4659, allocations: 1.917 MB / 0.6134 GB, free: 2.973 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/0.466, allocations: 8 kB / 0.6134 GB, free: 2.965 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00564/0.4716, allocations: 2.359 MB / 0.6157 GB, free: 0.5859 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/0.4716, allocations: 19.94 kB / 0.6157 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.872e-05/0.4717, allocations: 27.94 kB / 0.6157 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002562/0.4742, allocations: 379.3 kB / 0.6161 GB, free: 160 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002734/0.477, allocations: 0.5578 MB / 0.6166 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009229/0.4862, allocations: 7.908 MB / 0.6244 GB, free: 7.078 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/0.4875, allocations: 79.86 kB / 0.6244 GB, free: 7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001861/0.4877, allocations: 108.1 kB / 0.6245 GB, free: 6.895 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.0006534/0.4883, allocations: 377 kB / 0.6249 GB, free: 6.516 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002969/0.4886, allocations: 131.1 kB / 0.625 GB, free: 6.387 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004776/0.4934, allocations: 1.531 MB / 0.6265 GB, free: 4.824 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.4934, allocations: 8 kB / 0.6265 GB, free: 4.816 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.4934, allocations: 8 kB / 0.6265 GB, free: 4.809 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.4935, allocations: 3.984 kB / 0.6265 GB, free: 4.805 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007074/0.5005, allocations: 3.015 MB / 0.6295 GB, free: 1.633 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/0.5005, allocations: 12.03 kB / 0.6295 GB, free: 1.621 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008886/0.5014, allocations: 215.7 kB / 0.6297 GB, free: 1.41 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002663/0.5041, allocations: 396.8 kB / 0.6301 GB, free: 1.004 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.12e-05/0.5042, allocations: 47.98 kB / 0.6301 GB, free: 0.957 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008548/0.5127, allocations: 7.715 MB / 0.6377 GB, free: 8.617 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/0.5127, allocations: 11.94 kB / 0.6377 GB, free: 8.605 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005079/0.5178, allocations: 2.156 MB / 0.6398 GB, free: 6.332 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000327/0.5181, allocations: 216.2 kB / 0.64 GB, free: 6.102 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.5183, allocations: 24 kB / 0.64 GB, free: 6.078 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007045/0.519, allocations: 28 kB / 0.64 GB, free: 6.051 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.5192, allocations: 112.5 kB / 0.6401 GB, free: 5.938 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.783e-05/0.5193, allocations: 47.98 kB / 0.6402 GB, free: 5.891 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001276/0.5206, allocations: 1.013 MB / 0.6412 GB, free: 4.871 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5206, allocations: 7.938 kB / 0.6412 GB, free: 4.863 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002637/0.5232, allocations: 0.8221 MB / 0.642 GB, free: 4.039 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.006905/0.5301, allocations: 3.521 MB / 0.6454 GB, free: 392 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0035/0.5336, allocations: 1.691 MB / 0.6471 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.5336, allocations: 0 / 0.6471 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001448/0.5351, allocations: 0.957 MB / 0.648 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001428/0.5365, allocations: 227.2 kB / 0.6482 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02243/0.5589, allocations: 13.4 MB / 0.6613 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009328/0.5599, allocations: 1.227 MB / 0.6625 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001018/0.5609, allocations: 326.5 kB / 0.6628 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009028/0.5618, allocations: 0.6593 MB / 0.6635 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of SimCode: time 8.71e-07/0.5618, allocations: 3.938 kB / 0.6635 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08606/0.6478, allocations: 40.9 MB / 0.7034 GB, free: 4.039 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.67/27.32, allocations: 10.27 kB / 0.7034 GB, free: 4.031 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: 30.09044560599432] Failed to read output from testmodel.py, exit status != 0: 27.44129249699472 27.462265781 27.059795073 Calling exit ...