Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.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.0013/0.0013, allocations: 103.3 kB / 16.45 MB, free: 6.449 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.001384/0.001384, allocations: 208.9 kB / 19.42 MB, free: 3.641 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.418/1.418, allocations: 230.6 MB / 252.8 MB, free: 8.984 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.1301/0.1301, allocations: 23.85 MB / 332.7 MB, free: 12.45 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.ElectrolysisMethanation,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation",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.001983/0.001983, allocations: 74.41 kB / 466 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2981, allocations: 59.81 MB / 0.5135 GB, free: 8.836 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.ElectrolysisMethanation): time 0.04207/0.3402, allocations: 31.72 MB / 0.5445 GB, free: 9.348 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03776/0.3779, allocations: 29.02 MB / 0.5728 GB, free: 14.56 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002185/0.3801, allocations: 39.69 kB / 0.5728 GB, free: 14.52 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00231/0.3824, allocations: 0.6862 MB / 0.5735 GB, free: 13.83 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007794/0.3902, allocations: 2.242 MB / 0.5757 GB, free: 11.57 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01065/0.4009, allocations: 3.957 MB / 0.5796 GB, free: 7.59 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004795/0.4057, allocations: 3.089 MB / 0.5826 GB, free: 4.484 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00246/0.4081, allocations: 1.647 MB / 0.5842 GB, free: 2.789 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002228/0.4104, allocations: 1.484 MB / 0.5856 GB, free: 1.301 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002648/0.413, allocations: 1.693 MB / 0.5873 GB, free: 15.6 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006944/0.4137, allocations: 296 kB / 0.5876 GB, free: 15.31 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009184/0.4229, allocations: 3.179 MB / 0.5907 GB, free: 12.13 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001063/0.424, allocations: 0.6933 MB / 0.5914 GB, free: 11.43 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001998/0.426, allocations: 1.431 MB / 0.5928 GB, free: 9.996 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01353/0.4395, allocations: 6.58 MB / 0.5992 GB, free: 3.391 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.4395, allocations: 0 / 0.5992 GB, free: 3.391 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4395, allocations: 0 / 0.5992 GB, free: 3.391 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.108e-05/0.4396, allocations: 0 / 0.5992 GB, free: 3.391 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 609 * Number of variables: 609 Notification: Performance of Generate backend data structure: time 0.007557/0.4471, allocations: 3.402 MB / 0.6025 GB, free: 15.92 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.4472, allocations: 16.02 kB / 0.6025 GB, free: 15.9 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004918/0.4477, allocations: 329.7 kB / 0.6028 GB, free: 15.57 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002569/0.4503, allocations: 0.5725 MB / 0.6034 GB, free: 15 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00273/0.453, allocations: 1.428 MB / 0.6048 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002506/0.4532, allocations: 270 kB / 0.605 GB, free: 13.23 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005013/0.4537, allocations: 251.9 kB / 0.6053 GB, free: 12.98 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005748/0.4595, allocations: 3.049 MB / 0.6083 GB, free: 9.828 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.433e-05/0.4595, allocations: 4 kB / 0.6083 GB, free: 9.824 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002855/0.4598, allocations: 96 kB / 0.6084 GB, free: 9.73 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.011e-05/0.4599, allocations: 60 kB / 0.6084 GB, free: 9.672 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006519/0.4664, allocations: 3.619 MB / 0.6119 GB, free: 6.051 MB / 462.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.01861/0.485, allocations: 10.54 MB / 0.6222 GB, free: 11.13 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003501/0.4885, allocations: 2.16 MB / 0.6243 GB, free: 8.859 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001839/0.4903, allocations: 1.02 MB / 0.6253 GB, free: 7.828 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01495/0.5053, allocations: 8.834 MB / 0.634 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.722e-05/0.5053, allocations: 47.88 kB / 0.634 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001398/0.5067, allocations: 306.5 kB / 0.6343 GB, free: 13.79 MB / 494.1 MB Notification: Performance of pre-optimization done (n=134): time 5.601e-06/0.5067, allocations: 7.875 kB / 0.6343 GB, free: 13.78 MB / 494.1 MB Notification: Performance of matching and sorting (n=181): time 0.03775/0.5445, allocations: 9.78 MB / 0.6439 GB, free: 3.883 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.308e-05/0.5446, allocations: 120.8 kB / 0.644 GB, free: 3.738 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001939/0.5465, allocations: 1.462 MB / 0.6454 GB, free: 2.266 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002839/0.5468, allocations: 57.7 kB / 0.6455 GB, free: 2.203 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008714/0.5477, allocations: 1.186 MB / 0.6466 GB, free: 1.004 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006946/0.5484, allocations: 0.6624 MB / 0.6473 GB, free: 344 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008358/0.5492, allocations: 0.5131 MB / 0.6478 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.5493, allocations: 305.1 kB / 0.6481 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001738/0.551, allocations: 0.9462 MB / 0.649 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002564/0.5536, allocations: 1.89 MB / 0.6508 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004582/0.5582, allocations: 2.992 MB / 0.6538 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.927e-05/0.5582, allocations: 12 kB / 0.6538 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01118/0.5694, allocations: 3.894 MB / 0.6576 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.365e-05/0.5694, allocations: 20 kB / 0.6576 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.402e-05/0.5695, allocations: 28 kB / 0.6576 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005737/0.5752, allocations: 1.183 MB / 0.6588 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002368/0.5776, allocations: 0.5772 MB / 0.6593 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/0.5888, allocations: 7.525 MB / 0.6667 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00224/0.591, allocations: 111.8 kB / 0.6668 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004739/0.5915, allocations: 160 kB / 0.6669 GB, free: 10.82 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (305): * Single equations (assignments): 300 * 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 {(3,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 {(1,18), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001132/0.5926, allocations: 481 kB / 0.6674 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006147/0.5932, allocations: 186.8 kB / 0.6676 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01046/0.6037, allocations: 3.245 MB / 0.6707 GB, free: 6.883 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.838e-05/0.6037, allocations: 16 kB / 0.6708 GB, free: 6.867 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.59e-05/0.6037, allocations: 8 kB / 0.6708 GB, free: 6.859 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.948e-05/0.6038, allocations: 15.95 kB / 0.6708 GB, free: 6.844 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01505/0.6188, allocations: 5.418 MB / 0.6761 GB, free: 1.324 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.506e-05/0.6188, allocations: 4 kB / 0.6761 GB, free: 1.32 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001536/0.6204, allocations: 303.6 kB / 0.6764 GB, free: 1.023 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005243/0.6256, allocations: 1.054 MB / 0.6774 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000366/0.626, allocations: 71.89 kB / 0.6775 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0093/0.6353, allocations: 6.809 MB / 0.6841 GB, free: 8.633 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.6353, allocations: 4 kB / 0.6841 GB, free: 8.629 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01125/0.6465, allocations: 4.124 MB / 0.6881 GB, free: 4.441 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005451/0.6471, allocations: 239.9 kB / 0.6884 GB, free: 4.188 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004429/0.6475, allocations: 40 kB / 0.6884 GB, free: 4.148 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.6488, allocations: 43.98 kB / 0.6885 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005128/0.6493, allocations: 181.6 kB / 0.6886 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002274/0.6495, allocations: 79.95 kB / 0.6887 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001453/0.651, allocations: 0.9624 MB / 0.6896 GB, free: 2.887 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.651, allocations: 0 / 0.6896 GB, free: 2.887 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004735/0.6557, allocations: 1.262 MB / 0.6909 GB, free: 1.621 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,CH4.logn,CO2.logn,H2.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 (156): * Single equations (assignments): 151 * 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 {(3,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,19), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01385/0.6696, allocations: 5.91 MB / 0.6966 GB, free: 11.63 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006622/0.6762, allocations: 2.898 MB / 0.6995 GB, free: 8.676 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.6762, allocations: 288 / 0.6995 GB, free: 8.676 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003319/0.6795, allocations: 1.535 MB / 0.701 GB, free: 7.082 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.6814, allocations: 312.2 kB / 0.7013 GB, free: 6.781 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04103/0.7225, allocations: 19.15 MB / 0.72 GB, free: 2.383 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001237/0.7237, allocations: 1.478 MB / 0.7214 GB, free: 0.8711 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001628/0.7253, allocations: 458.1 kB / 0.7219 GB, free: 432 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1953/0.9206, allocations: 1.01 MB / 0.7228 GB, free: 173.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.052e-06/0.9206, allocations: 0 / 0.7228 GB, free: 173.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1152/1.036, allocations: 64.82 MB / 0.7861 GB, free: 137.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.1/35.13, allocations: 11.09 kB / 0.7862 GB, free: 137.2 MB / 0.5606 GB " [Timeout remaining time 625] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation_res.csv --start-time 0 --stop-time 0.0001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-08 Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 37.86770722200163] Failed to read output from testmodel.py, exit status != 0: 35.2737940139923 35.289922248 34.846832528 Calling exit ...