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.001751/0.001751, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002269/0.002269, allocations: 219.5 kB / 22.25 MB, free: 4.852 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.447/1.447, allocations: 230.6 MB / 256 MB, free: 7.812 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.1391/0.1391, allocations: 23.88 MB / 336.3 MB, free: 11.08 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.002082/0.002082, allocations: 67.89 kB / 471.1 MB, free: 7.551 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3335, allocations: 59.86 MB / 0.5185 GB, free: 9.484 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.07368/0.4071, allocations: 28.26 MB / 0.5461 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02495/0.4321, allocations: 17.13 MB / 0.5629 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001542/0.4336, allocations: 23.81 kB / 0.5629 GB, free: 11.94 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001664/0.4353, allocations: 462.8 kB / 0.5633 GB, free: 11.6 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004465/0.4398, allocations: 1.2 MB / 0.5645 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009046/0.4488, allocations: 2.898 MB / 0.5673 GB, free: 7.977 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0037/0.4525, allocations: 2.094 MB / 0.5694 GB, free: 5.871 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001651/0.4542, allocations: 1.053 MB / 0.5704 GB, free: 4.77 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001397/0.4555, allocations: 0.931 MB / 0.5713 GB, free: 3.836 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001589/0.4571, allocations: 0.9452 MB / 0.5722 GB, free: 2.887 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003892/0.4575, allocations: 200 kB / 0.5724 GB, free: 2.691 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005826/0.4634, allocations: 1.966 MB / 0.5743 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000731/0.4641, allocations: 470.6 kB / 0.5748 GB, free: 268 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001159/0.4652, allocations: 0.821 MB / 0.5756 GB, free: 15.43 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01058/0.4758, allocations: 4.35 MB / 0.5798 GB, free: 11.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.4758, allocations: 0 / 0.5798 GB, free: 11.07 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4758, allocations: 0 / 0.5798 GB, free: 11.07 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.568e-05/0.4759, allocations: 0 / 0.5798 GB, free: 11.07 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.00479/0.4807, allocations: 2.331 MB / 0.5821 GB, free: 8.695 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.4807, allocations: 8.031 kB / 0.5821 GB, free: 8.688 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002835/0.481, allocations: 240.8 kB / 0.5823 GB, free: 8.441 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001679/0.4827, allocations: 447 kB / 0.5828 GB, free: 8.004 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002243/0.4849, allocations: 1.015 MB / 0.5838 GB, free: 6.957 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002405/0.4852, allocations: 242.2 kB / 0.584 GB, free: 6.695 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003422/0.4855, allocations: 164 kB / 0.5842 GB, free: 6.535 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003862/0.4894, allocations: 2.237 MB / 0.5863 GB, free: 4.23 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.77e-05/0.4894, allocations: 0 / 0.5863 GB, free: 4.23 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001575/0.4896, allocations: 71.98 kB / 0.5864 GB, free: 4.16 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.465e-05/0.4896, allocations: 44 kB / 0.5864 GB, free: 4.117 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004368/0.494, allocations: 2.696 MB / 0.5891 GB, free: 1.414 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.01218/0.5062, allocations: 6.333 MB / 0.5953 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001995/0.5081, allocations: 0.9755 MB / 0.5962 GB, free: 9.926 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000891/0.509, allocations: 0.5135 MB / 0.5967 GB, free: 9.402 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007469/0.5165, allocations: 2.99 MB / 0.5996 GB, free: 6.391 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.197e-05/0.5166, allocations: 43.2 kB / 0.5997 GB, free: 6.34 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005326/0.5171, allocations: 119 kB / 0.5998 GB, free: 6.223 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 3.307e-06/0.5171, allocations: 0 / 0.5998 GB, free: 6.223 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01829/0.5354, allocations: 4.562 MB / 0.6043 GB, free: 1.602 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.099e-05/0.5355, allocations: 115.8 kB / 0.6044 GB, free: 1.461 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001994/0.5375, allocations: 1.544 MB / 0.6059 GB, free: 15.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000121/0.5376, allocations: 41.7 kB / 0.6059 GB, free: 15.85 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000797/0.5384, allocations: 0.9278 MB / 0.6068 GB, free: 14.91 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000381/0.5387, allocations: 357 kB / 0.6072 GB, free: 14.55 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005472/0.5393, allocations: 363.4 kB / 0.6075 GB, free: 14.19 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.5394, allocations: 305.1 kB / 0.6078 GB, free: 13.89 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.5405, allocations: 0.6325 MB / 0.6084 GB, free: 13.26 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.5422, allocations: 1.345 MB / 0.6097 GB, free: 11.58 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002733/0.5449, allocations: 1.929 MB / 0.6116 GB, free: 9.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-05/0.5449, allocations: 4 kB / 0.6116 GB, free: 9.316 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00572/0.5507, allocations: 2.39 MB / 0.6139 GB, free: 6.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.262e-05/0.5507, allocations: 19.94 kB / 0.614 GB, free: 6.891 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.912e-05/0.5507, allocations: 24 kB / 0.614 GB, free: 6.867 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002516/0.5533, allocations: 379.1 kB / 0.6143 GB, free: 6.484 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002726/0.556, allocations: 0.5617 MB / 0.6149 GB, free: 5.922 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009073/0.5651, allocations: 7.458 MB / 0.6222 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.5665, allocations: 88.06 kB / 0.6223 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002104/0.5667, allocations: 108 kB / 0.6224 GB, free: 13.76 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.000699/0.5674, allocations: 375.8 kB / 0.6227 GB, free: 13.38 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003089/0.5677, allocations: 131.2 kB / 0.6229 GB, free: 13.25 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004632/0.5723, allocations: 1.531 MB / 0.6243 GB, free: 11.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.5723, allocations: 8 kB / 0.6244 GB, free: 11.69 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.5723, allocations: 4 kB / 0.6244 GB, free: 11.69 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.5723, allocations: 3.984 kB / 0.6244 GB, free: 11.68 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007162/0.5795, allocations: 2.819 MB / 0.6271 GB, free: 8.715 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.415e-05/0.5795, allocations: 4 kB / 0.6271 GB, free: 8.711 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009205/0.5804, allocations: 215.7 kB / 0.6273 GB, free: 8.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002673/0.5831, allocations: 421.5 kB / 0.6277 GB, free: 8.07 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001397/0.5833, allocations: 43.98 kB / 0.6278 GB, free: 8.027 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008646/0.5919, allocations: 7.26 MB / 0.6349 GB, free: 256 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/0.5919, allocations: 11.94 kB / 0.6349 GB, free: 244 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005359/0.5973, allocations: 2.164 MB / 0.637 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005018/0.5978, allocations: 131.2 kB / 0.6371 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/0.598, allocations: 24 kB / 0.6371 GB, free: 13.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007885/0.5988, allocations: 32 kB / 0.6372 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002193/0.599, allocations: 116.2 kB / 0.6373 GB, free: 13.65 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.5991, allocations: 51.98 kB / 0.6373 GB, free: 13.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001326/0.6004, allocations: 1.033 MB / 0.6383 GB, free: 12.56 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6004, allocations: 0 / 0.6383 GB, free: 12.56 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003213/0.6036, allocations: 0.826 MB / 0.6391 GB, free: 11.73 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.007167/0.6108, allocations: 3.506 MB / 0.6426 GB, free: 8.086 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00366/0.6145, allocations: 1.702 MB / 0.6442 GB, free: 6.363 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/0.6145, allocations: 0 / 0.6442 GB, free: 6.363 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001458/0.6159, allocations: 0.962 MB / 0.6452 GB, free: 5.352 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001559/0.6175, allocations: 223 kB / 0.6454 GB, free: 5.137 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02346/0.641, allocations: 13.47 MB / 0.6585 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007975/0.6417, allocations: 0.6449 MB / 0.6592 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00115/0.6429, allocations: 322.5 kB / 0.6595 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009428/0.6438, allocations: 0.6671 MB / 0.6601 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of SimCode: time 1.172e-06/0.6438, allocations: 0 / 0.6601 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09983/0.7437, allocations: 42.33 MB / 0.7015 GB, free: 10.92 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.11/15.85, allocations: 11.91 kB / 0.7015 GB, free: 10.91 MB / 0.545 GB " [Timeout remaining time 644] (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 os._exit(0), Time elapsed: 18.642602819018066] Failed to read output from testmodel.py, exit status != 0: 15.997644426766783 16.019459176 15.539117812 Calling exit ...