Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.00153/0.00153, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001728/0.001728, allocations: 216.4 kB / 22.25 MB, free: 5.129 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.376/1.376, allocations: 230.6 MB / 256 MB, free: 7.953 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1245/0.1245, allocations: 23.9 MB / 336.3 MB, free: 11.14 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_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.001901/0.001901, allocations: 63.91 kB / 471.2 MB, free: 7.648 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2732, allocations: 59.88 MB / 0.5186 GB, free: 9.621 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.03733/0.3105, allocations: 29.08 MB / 0.547 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02381/0.3343, allocations: 19.54 MB / 0.5661 GB, free: 8.812 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001346/0.3356, allocations: 27.81 kB / 0.5662 GB, free: 8.785 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001311/0.3369, allocations: 0.5034 MB / 0.5666 GB, free: 8.391 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003136/0.3401, allocations: 1.235 MB / 0.5679 GB, free: 7.34 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007431/0.3475, allocations: 2.895 MB / 0.5707 GB, free: 4.75 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002779/0.3503, allocations: 2.098 MB / 0.5727 GB, free: 2.641 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001258/0.3516, allocations: 1.069 MB / 0.5738 GB, free: 1.523 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009833/0.3525, allocations: 0.931 MB / 0.5747 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001382/0.3539, allocations: 1.078 MB / 0.5757 GB, free: 15.51 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000263/0.3542, allocations: 200 kB / 0.5759 GB, free: 15.31 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005959/0.3601, allocations: 2.079 MB / 0.578 GB, free: 13.23 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005087/0.3606, allocations: 478.5 kB / 0.5784 GB, free: 12.76 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.3617, allocations: 0.98 MB / 0.5794 GB, free: 11.78 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007271/0.3689, allocations: 4.358 MB / 0.5836 GB, free: 7.402 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3689, allocations: 4 kB / 0.5836 GB, free: 7.398 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3689, allocations: 0 / 0.5836 GB, free: 7.398 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.989e-05/0.369, allocations: 0 / 0.5836 GB, free: 7.398 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.003924/0.3729, allocations: 2.335 MB / 0.5859 GB, free: 5.02 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.3729, allocations: 8.031 kB / 0.5859 GB, free: 5.012 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000269/0.3732, allocations: 236.8 kB / 0.5861 GB, free: 4.77 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001525/0.3747, allocations: 454.8 kB / 0.5866 GB, free: 4.324 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001744/0.3765, allocations: 1.019 MB / 0.5876 GB, free: 3.273 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001945/0.3767, allocations: 242.2 kB / 0.5878 GB, free: 3.012 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002459/0.3769, allocations: 168 kB / 0.588 GB, free: 2.848 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003184/0.3801, allocations: 2.237 MB / 0.5901 GB, free: 0.543 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.569e-05/0.3801, allocations: 3.938 kB / 0.5901 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001553/0.3803, allocations: 68 kB / 0.5902 GB, free: 484 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.368e-05/0.3803, allocations: 44 kB / 0.5903 GB, free: 440 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003827/0.3841, allocations: 2.719 MB / 0.5929 GB, free: 13.7 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.01024/0.3944, allocations: 7.211 MB / 0.6 GB, free: 6.219 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/0.396, allocations: 0.979 MB / 0.6009 GB, free: 5.215 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000814/0.3968, allocations: 0.5135 MB / 0.6014 GB, free: 4.688 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00662/0.4034, allocations: 3.157 MB / 0.6045 GB, free: 1.508 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.4035, allocations: 43.22 kB / 0.6045 GB, free: 1.457 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003984/0.4039, allocations: 119 kB / 0.6046 GB, free: 1.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.034e-06/0.4039, allocations: 0 / 0.6046 GB, free: 1.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01759/0.4215, allocations: 4.566 MB / 0.6091 GB, free: 12.71 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/0.4215, allocations: 115.8 kB / 0.6092 GB, free: 12.57 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/0.4233, allocations: 1.501 MB / 0.6107 GB, free: 11.05 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.035e-05/0.4234, allocations: 41.7 kB / 0.6107 GB, free: 11.01 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006448/0.424, allocations: 0.924 MB / 0.6116 GB, free: 10.07 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002972/0.4243, allocations: 369 kB / 0.612 GB, free: 9.707 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004826/0.4248, allocations: 363.3 kB / 0.6123 GB, free: 9.344 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.4249, allocations: 301.1 kB / 0.6126 GB, free: 9.047 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009707/0.4259, allocations: 0.6286 MB / 0.6132 GB, free: 8.418 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.4275, allocations: 1.337 MB / 0.6145 GB, free: 6.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002495/0.4299, allocations: 1.94 MB / 0.6164 GB, free: 4.48 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.857e-06/0.43, allocations: 4 kB / 0.6164 GB, free: 4.477 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005391/0.4353, allocations: 2.383 MB / 0.6188 GB, free: 2.07 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.4354, allocations: 19.94 kB / 0.6188 GB, free: 2.051 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.813e-05/0.4354, allocations: 28 kB / 0.6188 GB, free: 2.023 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002492/0.4379, allocations: 374.8 kB / 0.6192 GB, free: 1.645 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002581/0.4405, allocations: 0.5656 MB / 0.6197 GB, free: 1.078 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00855/0.449, allocations: 7.5 MB / 0.627 GB, free: 9.066 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/0.4504, allocations: 84.11 kB / 0.6271 GB, free: 8.984 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001832/0.4506, allocations: 104 kB / 0.6272 GB, free: 8.883 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.000686/0.4513, allocations: 377.5 kB / 0.6276 GB, free: 8.504 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002772/0.4516, allocations: 131.1 kB / 0.6277 GB, free: 8.375 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/0.4561, allocations: 1.527 MB / 0.6292 GB, free: 6.824 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.4561, allocations: 8 kB / 0.6292 GB, free: 6.816 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.4561, allocations: 4 kB / 0.6292 GB, free: 6.812 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.735e-05/0.4562, allocations: 3.984 kB / 0.6292 GB, free: 6.809 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006611/0.4628, allocations: 2.982 MB / 0.6321 GB, free: 3.676 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/0.4628, allocations: 8 kB / 0.6321 GB, free: 3.668 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000818/0.4636, allocations: 216.4 kB / 0.6323 GB, free: 3.457 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002545/0.4662, allocations: 416.4 kB / 0.6327 GB, free: 3.031 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.433e-05/0.4662, allocations: 39.98 kB / 0.6328 GB, free: 2.992 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007793/0.474, allocations: 7.295 MB / 0.6399 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/0.474, allocations: 11.94 kB / 0.6399 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004806/0.4788, allocations: 2.168 MB / 0.642 GB, free: 8.879 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002967/0.4791, allocations: 127.2 kB / 0.6421 GB, free: 8.754 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001643/0.4793, allocations: 31.98 kB / 0.6422 GB, free: 8.723 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006574/0.48, allocations: 24 kB / 0.6422 GB, free: 8.699 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.4801, allocations: 120.3 kB / 0.6423 GB, free: 8.582 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.703e-05/0.4802, allocations: 47.98 kB / 0.6424 GB, free: 8.535 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001233/0.4815, allocations: 1.033 MB / 0.6434 GB, free: 7.496 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4815, allocations: 4 kB / 0.6434 GB, free: 7.492 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00251/0.484, allocations: 0.826 MB / 0.6442 GB, free: 6.664 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.006456/0.4904, allocations: 3.511 MB / 0.6476 GB, free: 3.016 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003134/0.4936, allocations: 1.703 MB / 0.6493 GB, free: 1.293 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4936, allocations: 0 / 0.6493 GB, free: 1.293 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.4949, allocations: 0.965 MB / 0.6502 GB, free: 284 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.4961, allocations: 238.6 kB / 0.6504 GB, free: 48 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02126/0.5174, allocations: 13.46 MB / 0.6636 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009054/0.5183, allocations: 1.219 MB / 0.6648 GB, free: 312 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0009618/0.5192, allocations: 330.5 kB / 0.6651 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008164/0.52, allocations: 0.6593 MB / 0.6657 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of SimCode: time 7.01e-07/0.52, allocations: 0 / 0.6657 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08833/0.6084, allocations: 42.34 MB / 0.7071 GB, free: 5.184 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.16/26.77, allocations: 2.812 kB / 0.7071 GB, free: 5.184 MB / 0.545 GB " [Timeout remaining time 633] (rm -f Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 29.35304946100223] Failed to read output from testmodel.py, exit status != 0: 26.914426062998245 26.928278271 26.556431519 Calling exit ...