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.001279/0.001279, allocations: 103.2 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.001359/0.001359, allocations: 210.4 kB / 19.42 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.41/1.41, allocations: 230.6 MB / 252.8 MB, free: 8.992 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.1323/0.1323, allocations: 23.85 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.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.002018/0.002018, allocations: 63.91 kB / 466 MB, free: 10.12 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2847, allocations: 59.82 MB / 0.5135 GB, free: 8.855 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.04128/0.326, allocations: 30.06 MB / 0.5428 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02887/0.3549, allocations: 22.14 MB / 0.5645 GB, free: 6.488 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001742/0.3566, allocations: 27.81 kB / 0.5645 GB, free: 6.461 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002072/0.3587, allocations: 0.5754 MB / 0.565 GB, free: 6.012 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004912/0.3636, allocations: 1.35 MB / 0.5664 GB, free: 4.867 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009737/0.3733, allocations: 3.315 MB / 0.5696 GB, free: 1.844 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004174/0.3775, allocations: 2.395 MB / 0.5719 GB, free: 15.44 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002/0.3795, allocations: 1.301 MB / 0.5732 GB, free: 14.09 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001805/0.3813, allocations: 1.052 MB / 0.5742 GB, free: 13.03 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002199/0.3835, allocations: 1.237 MB / 0.5754 GB, free: 11.79 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005687/0.3841, allocations: 232 kB / 0.5757 GB, free: 11.56 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007412/0.3915, allocations: 2.371 MB / 0.578 GB, free: 9.188 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008847/0.3924, allocations: 0.5297 MB / 0.5785 GB, free: 8.656 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001623/0.394, allocations: 1.139 MB / 0.5796 GB, free: 7.512 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01198/0.406, allocations: 5.023 MB / 0.5845 GB, free: 2.469 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.038e-05/0.406, allocations: 3.938 kB / 0.5845 GB, free: 2.465 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.406, allocations: 4 kB / 0.5845 GB, free: 2.461 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.109e-05/0.4061, allocations: 0 / 0.5845 GB, free: 2.461 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.006057/0.4121, allocations: 2.734 MB / 0.5872 GB, free: 15.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.4122, allocations: 12.03 kB / 0.5872 GB, free: 15.65 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003401/0.4125, allocations: 266.4 kB / 0.5875 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002042/0.4146, allocations: 0.5067 MB / 0.588 GB, free: 14.88 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002083/0.4166, allocations: 1.205 MB / 0.5891 GB, free: 13.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001953/0.4168, allocations: 199.3 kB / 0.5893 GB, free: 13.42 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003237/0.4172, allocations: 195.9 kB / 0.5895 GB, free: 13.23 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004304/0.4215, allocations: 2.659 MB / 0.5921 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.782e-05/0.4215, allocations: 4 kB / 0.5921 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002033/0.4217, allocations: 80 kB / 0.5922 GB, free: 10.42 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.282e-05/0.4217, allocations: 48 kB / 0.5922 GB, free: 10.38 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005155/0.4269, allocations: 3.287 MB / 0.5954 GB, free: 7.082 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.01367/0.4406, allocations: 8.536 MB / 0.6038 GB, free: 14.26 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002159/0.4427, allocations: 1.264 MB / 0.605 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.4438, allocations: 0.595 MB / 0.6056 GB, free: 12.33 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008986/0.4528, allocations: 5.583 MB / 0.611 GB, free: 6.227 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.686e-05/0.4528, allocations: 51.16 kB / 0.6111 GB, free: 6.168 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009146/0.4537, allocations: 198.8 kB / 0.6113 GB, free: 5.973 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.326e-06/0.4537, allocations: 0 / 0.6113 GB, free: 5.973 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02976/0.4835, allocations: 7.226 MB / 0.6183 GB, free: 14.61 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.479e-05/0.4836, allocations: 115.8 kB / 0.6184 GB, free: 14.48 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002479/0.486, allocations: 1.857 MB / 0.6203 GB, free: 12.6 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002406/0.4863, allocations: 45.7 kB / 0.6203 GB, free: 12.55 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008117/0.4871, allocations: 1.037 MB / 0.6213 GB, free: 11.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005269/0.4876, allocations: 436.4 kB / 0.6217 GB, free: 11.07 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006988/0.4883, allocations: 419.3 kB / 0.6221 GB, free: 10.66 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.4884, allocations: 301.1 kB / 0.6224 GB, free: 10.36 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001481/0.4899, allocations: 0.8551 MB / 0.6233 GB, free: 9.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002171/0.4921, allocations: 1.592 MB / 0.6248 GB, free: 7.559 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003542/0.4956, allocations: 2.333 MB / 0.6271 GB, free: 4.891 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-05/0.4957, allocations: 8 kB / 0.6271 GB, free: 4.883 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.009128/0.5048, allocations: 3.296 MB / 0.6303 GB, free: 1.562 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.344e-05/0.5048, allocations: 16 kB / 0.6303 GB, free: 1.547 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-05/0.5049, allocations: 24 kB / 0.6304 GB, free: 1.523 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005139/0.51, allocations: 1.038 MB / 0.6314 GB, free: 480 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.5117, allocations: 435.3 kB / 0.6318 GB, free: 44 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/0.5226, allocations: 7.483 MB / 0.6391 GB, free: 8.121 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001845/0.5245, allocations: 95.91 kB / 0.6392 GB, free: 8.027 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002568/0.5247, allocations: 120 kB / 0.6393 GB, free: 7.91 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.0007894/0.5255, allocations: 420.1 kB / 0.6397 GB, free: 7.492 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003902/0.5259, allocations: 151 kB / 0.6398 GB, free: 7.344 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007083/0.533, allocations: 2.179 MB / 0.642 GB, free: 5.137 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.359e-05/0.533, allocations: 19.94 kB / 0.642 GB, free: 5.117 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.533, allocations: 0 / 0.642 GB, free: 5.117 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.155e-05/0.533, allocations: 7.984 kB / 0.642 GB, free: 5.109 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0104/0.5434, allocations: 3.924 MB / 0.6458 GB, free: 1.086 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.5434, allocations: 4 kB / 0.6458 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000807/0.5442, allocations: 171.9 kB / 0.646 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004638/0.5489, allocations: 0.9247 MB / 0.6469 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001902/0.5491, allocations: 43.97 kB / 0.6469 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009096/0.5582, allocations: 6.77 MB / 0.6536 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.5582, allocations: 7.969 kB / 0.6536 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008164/0.5663, allocations: 2.903 MB / 0.6564 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004994/0.5668, allocations: 216.1 kB / 0.6566 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002545/0.5671, allocations: 24 kB / 0.6566 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009315/0.568, allocations: 31.98 kB / 0.6567 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003229/0.5683, allocations: 120.7 kB / 0.6568 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/0.5685, allocations: 51.97 kB / 0.6568 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001676/0.5701, allocations: 1.306 MB / 0.6581 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.5701, allocations: 0 / 0.6581 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003309/0.5735, allocations: 0.9703 MB / 0.659 GB, free: 3.023 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.01017/0.5836, allocations: 4.351 MB / 0.6633 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005305/0.5889, allocations: 2.419 MB / 0.6657 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.5889, allocations: 3.938 kB / 0.6657 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002498/0.5914, allocations: 1.174 MB / 0.6668 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001624/0.5931, allocations: 248.2 kB / 0.667 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03301/0.6261, allocations: 16.47 MB / 0.6831 GB, free: 9.266 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.6271, allocations: 1.31 MB / 0.6844 GB, free: 7.926 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001167/0.6283, allocations: 338.9 kB / 0.6847 GB, free: 7.594 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/0.6294, allocations: 0.7569 MB / 0.6855 GB, free: 6.836 MB / 0.5294 GB Notification: Performance of SimCode: time 1.042e-06/0.6294, allocations: 0 / 0.6855 GB, free: 6.836 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3058/0.9352, allocations: 51.09 MB / 0.7354 GB, free: 176.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.69/27.63, allocations: 7.031 kB / 0.7354 GB, free: 176.5 MB / 0.5606 GB " [Timeout remaining time 632] (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 sys.exit(0), Time elapsed: 30.318512883997755] Failed to read output from testmodel.py, exit status != 0: 27.755172784003662 27.76556088 27.356937957 Calling exit ...