Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.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.001412/0.001412, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001604/0.001604, allocations: 209.1 kB / 22.24 MB, free: 5.262 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.495/1.495, allocations: 230.6 MB / 256 MB, free: 7.789 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.1415/0.1415, allocations: 23.88 MB / 336.3 MB, free: 10.96 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.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",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.002437/0.002437, allocations: 71.91 kB / 471.1 MB, free: 7.496 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3529, allocations: 59.86 MB / 0.5185 GB, free: 9.559 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.ClimateChange.MethanElectrosynthesis): time 0.07674/0.4297, allocations: 29.28 MB / 0.5471 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02876/0.4584, allocations: 19.46 MB / 0.5661 GB, free: 8.926 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00185/0.4603, allocations: 31.81 kB / 0.5662 GB, free: 8.895 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001835/0.4621, allocations: 0.5333 MB / 0.5667 GB, free: 8.488 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00494/0.4671, allocations: 1.311 MB / 0.568 GB, free: 7.277 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01013/0.4772, allocations: 3.351 MB / 0.5712 GB, free: 3.906 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004033/0.4812, allocations: 2.395 MB / 0.5736 GB, free: 1.496 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001813/0.483, allocations: 1.239 MB / 0.5748 GB, free: 216 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001316/0.4843, allocations: 1.067 MB / 0.5758 GB, free: 15.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001659/0.486, allocations: 1.077 MB / 0.5769 GB, free: 14.05 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003965/0.4864, allocations: 232 kB / 0.5771 GB, free: 13.83 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006725/0.4931, allocations: 2.227 MB / 0.5793 GB, free: 11.6 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006296/0.4938, allocations: 0.5374 MB / 0.5798 GB, free: 11.06 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001148/0.4949, allocations: 0.9532 MB / 0.5807 GB, free: 10.11 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00908/0.504, allocations: 5.019 MB / 0.5856 GB, free: 5.066 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.504, allocations: 0 / 0.5856 GB, free: 5.066 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.504, allocations: 0 / 0.5856 GB, free: 5.066 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.13e-05/0.504, allocations: 0 / 0.5856 GB, free: 5.066 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: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.005078/0.5091, allocations: 2.651 MB / 0.5882 GB, free: 2.371 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.356e-05/0.5092, allocations: 8.031 kB / 0.5882 GB, free: 2.363 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003257/0.5095, allocations: 270.4 kB / 0.5885 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001913/0.5114, allocations: 0.5106 MB / 0.589 GB, free: 1.578 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002177/0.5136, allocations: 1.141 MB / 0.5901 GB, free: 412 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000229/0.5138, allocations: 250.7 kB / 0.5903 GB, free: 136 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003374/0.5142, allocations: 192 kB / 0.5905 GB, free: 15.94 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004182/0.5183, allocations: 2.712 MB / 0.5932 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.324e-05/0.5184, allocations: 11.88 kB / 0.5932 GB, free: 13.15 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001867/0.5186, allocations: 80 kB / 0.5933 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.083e-05/0.5186, allocations: 48 kB / 0.5933 GB, free: 13.03 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00492/0.5235, allocations: 3.314 MB / 0.5965 GB, free: 9.707 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.01379/0.5373, allocations: 7.523 MB / 0.6039 GB, free: 2.02 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002081/0.5394, allocations: 1.109 MB / 0.605 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009931/0.5404, allocations: 0.5911 MB / 0.6055 GB, free: 292 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008119/0.5485, allocations: 3.393 MB / 0.6089 GB, free: 12.86 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.02e-05/0.5486, allocations: 51.16 kB / 0.6089 GB, free: 12.8 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009449/0.5495, allocations: 202.8 kB / 0.6091 GB, free: 12.61 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.617e-06/0.5495, allocations: 0 / 0.6091 GB, free: 12.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02777/0.5773, allocations: 6.913 MB / 0.6159 GB, free: 5.637 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.776e-05/0.5774, allocations: 119.8 kB / 0.616 GB, free: 5.496 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002564/0.58, allocations: 1.943 MB / 0.6179 GB, free: 3.535 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002213/0.5802, allocations: 45.7 kB / 0.6179 GB, free: 3.484 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008691/0.581, allocations: 1.041 MB / 0.6189 GB, free: 2.43 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005066/0.5815, allocations: 432.4 kB / 0.6193 GB, free: 2.004 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006777/0.5822, allocations: 419.3 kB / 0.6197 GB, free: 1.586 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.5824, allocations: 305.1 kB / 0.62 GB, free: 1.285 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001425/0.5838, allocations: 0.8707 MB / 0.6209 GB, free: 420 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002176/0.586, allocations: 1.608 MB / 0.6224 GB, free: 14.46 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003726/0.5897, allocations: 2.356 MB / 0.6248 GB, free: 11.77 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.967e-05/0.5897, allocations: 8 kB / 0.6248 GB, free: 11.76 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008558/0.5983, allocations: 3.327 MB / 0.628 GB, free: 8.406 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.315e-05/0.5983, allocations: 16 kB / 0.628 GB, free: 8.391 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.189e-05/0.5984, allocations: 24 kB / 0.628 GB, free: 8.367 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004813/0.6032, allocations: 1.029 MB / 0.6291 GB, free: 7.324 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/0.6047, allocations: 439.3 kB / 0.6295 GB, free: 6.895 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01057/0.6153, allocations: 7.119 MB / 0.6364 GB, free: 15.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/0.6171, allocations: 99.91 kB / 0.6365 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002673/0.6173, allocations: 120 kB / 0.6366 GB, free: 15.18 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008238/0.6182, allocations: 409.1 kB / 0.637 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003996/0.6186, allocations: 158.9 kB / 0.6372 GB, free: 14.61 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006837/0.6254, allocations: 2.171 MB / 0.6393 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.186e-05/0.6254, allocations: 23.94 kB / 0.6393 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.6254, allocations: 0 / 0.6393 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.248e-05/0.6254, allocations: 7.984 kB / 0.6393 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/0.6357, allocations: 3.69 MB / 0.6429 GB, free: 8.609 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.6357, allocations: 0 / 0.6429 GB, free: 8.609 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008134/0.6365, allocations: 179.9 kB / 0.6431 GB, free: 8.434 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004404/0.6409, allocations: 0.9286 MB / 0.644 GB, free: 7.488 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/0.6411, allocations: 43.91 kB / 0.644 GB, free: 7.445 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009103/0.6502, allocations: 6.416 MB / 0.6503 GB, free: 0.668 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/0.6502, allocations: 4.031 kB / 0.6503 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007656/0.6578, allocations: 2.9 MB / 0.6531 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004533/0.6583, allocations: 139 kB / 0.6533 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002457/0.6585, allocations: 24 kB / 0.6533 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008832/0.6594, allocations: 35.98 kB / 0.6533 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003039/0.6597, allocations: 124.7 kB / 0.6535 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.6598, allocations: 47.97 kB / 0.6535 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001798/0.6616, allocations: 1.33 MB / 0.6548 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.6616, allocations: 0 / 0.6548 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003306/0.6649, allocations: 0.9741 MB / 0.6558 GB, free: 11.04 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (90): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009687/0.6746, allocations: 4.36 MB / 0.66 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005088/0.6797, allocations: 2.363 MB / 0.6623 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.6797, allocations: 0 / 0.6623 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002224/0.6819, allocations: 1.098 MB / 0.6634 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001555/0.6835, allocations: 246 kB / 0.6636 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03284/0.7163, allocations: 16.57 MB / 0.6798 GB, free: 1.355 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008837/0.7172, allocations: 0.7218 MB / 0.6805 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001266/0.7185, allocations: 331.9 kB / 0.6808 GB, free: 280 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/0.7197, allocations: 0.7609 MB / 0.6816 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of SimCode: time 2.084e-06/0.7197, allocations: 0 / 0.6816 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3311/1.051, allocations: 52.34 MB / 0.7327 GB, free: 177.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.38/16.43, allocations: 14.72 kB / 0.7327 GB, free: 177.7 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis_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_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.270797760225832] Failed to read output from testmodel.py, exit status != 0: 16.577262550592422 16.59105239 16.083920096 Calling exit ...