Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001324/0.001324, allocations: 107.5 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.00146/0.00146, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.459/1.459, allocations: 230.6 MB / 252.8 MB, free: 8.973 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.1335/0.1335, allocations: 23.88 MB / 332.7 MB, free: 12.34 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_master_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.002038/0.002038, allocations: 63.91 kB / 466 MB, free: 10.06 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2853, allocations: 59.84 MB / 0.5135 GB, free: 8.875 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.ClimateChange.MethanElectrosynthesis): time 0.03991/0.3252, allocations: 30.22 MB / 0.5431 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02953/0.3547, allocations: 22.14 MB / 0.5647 GB, free: 6.254 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001922/0.3566, allocations: 31.75 kB / 0.5647 GB, free: 6.223 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001686/0.3583, allocations: 0.5796 MB / 0.5653 GB, free: 5.77 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00451/0.3628, allocations: 1.351 MB / 0.5666 GB, free: 4.625 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00898/0.3718, allocations: 3.314 MB / 0.5698 GB, free: 1.586 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00358/0.3754, allocations: 2.391 MB / 0.5722 GB, free: 15.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00166/0.377, allocations: 1.305 MB / 0.5734 GB, free: 13.83 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001221/0.3782, allocations: 1.06 MB / 0.5745 GB, free: 12.77 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001583/0.3798, allocations: 1.23 MB / 0.5757 GB, free: 11.53 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003483/0.3802, allocations: 236 kB / 0.5759 GB, free: 11.3 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006723/0.3869, allocations: 2.367 MB / 0.5782 GB, free: 8.93 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006026/0.3875, allocations: 0.5374 MB / 0.5787 GB, free: 8.391 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00125/0.3888, allocations: 1.139 MB / 0.5799 GB, free: 7.246 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009061/0.3978, allocations: 5.023 MB / 0.5848 GB, free: 2.203 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3978, allocations: 0 / 0.5848 GB, free: 2.203 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3978, allocations: 0 / 0.5848 GB, free: 2.203 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.21e-05/0.3979, allocations: 0 / 0.5848 GB, free: 2.203 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.005112/0.403, allocations: 2.738 MB / 0.5874 GB, free: 15.4 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.403, allocations: 12.02 kB / 0.5874 GB, free: 15.39 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003581/0.4034, allocations: 270.5 kB / 0.5877 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002035/0.4054, allocations: 0.5027 MB / 0.5882 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002021/0.4074, allocations: 1.201 MB / 0.5894 GB, free: 13.37 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001972/0.4076, allocations: 207.3 kB / 0.5896 GB, free: 13.15 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003104/0.4079, allocations: 184 kB / 0.5897 GB, free: 12.97 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004249/0.4122, allocations: 2.663 MB / 0.5923 GB, free: 10.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.647e-05/0.4122, allocations: 3.938 kB / 0.5923 GB, free: 10.24 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002053/0.4124, allocations: 76 kB / 0.5924 GB, free: 10.17 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.571e-05/0.4125, allocations: 48 kB / 0.5925 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005203/0.4177, allocations: 3.295 MB / 0.5957 GB, free: 6.82 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.0134/0.4311, allocations: 8.528 MB / 0.604 GB, free: 14 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002157/0.4332, allocations: 1.271 MB / 0.6053 GB, free: 12.67 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.4343, allocations: 0.5911 MB / 0.6058 GB, free: 12.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009383/0.4437, allocations: 5.591 MB / 0.6113 GB, free: 5.961 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.006e-05/0.4437, allocations: 47.14 kB / 0.6113 GB, free: 5.906 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009023/0.4446, allocations: 198.8 kB / 0.6115 GB, free: 5.711 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 4.298e-06/0.4446, allocations: 3.938 kB / 0.6115 GB, free: 5.707 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02959/0.4742, allocations: 7.222 MB / 0.6186 GB, free: 14.36 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.418e-05/0.4743, allocations: 123.7 kB / 0.6187 GB, free: 14.21 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002571/0.4769, allocations: 1.849 MB / 0.6205 GB, free: 12.34 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001254/0.477, allocations: 45.7 kB / 0.6205 GB, free: 12.29 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008202/0.4778, allocations: 1.037 MB / 0.6216 GB, free: 11.24 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004299/0.4782, allocations: 436.4 kB / 0.622 GB, free: 10.81 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007176/0.479, allocations: 415.3 kB / 0.6224 GB, free: 10.4 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.4791, allocations: 305.2 kB / 0.6227 GB, free: 10.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001494/0.4806, allocations: 0.859 MB / 0.6235 GB, free: 9.234 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002191/0.4828, allocations: 1.589 MB / 0.6251 GB, free: 7.297 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003552/0.4863, allocations: 2.337 MB / 0.6273 GB, free: 4.625 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.676e-05/0.4863, allocations: 7.938 kB / 0.6273 GB, free: 4.617 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008926/0.4953, allocations: 3.292 MB / 0.6306 GB, free: 1.301 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.422e-05/0.4953, allocations: 16 kB / 0.6306 GB, free: 1.285 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.842e-05/0.4953, allocations: 24 kB / 0.6306 GB, free: 1.262 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005234/0.5006, allocations: 1.042 MB / 0.6316 GB, free: 208 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00157/0.5021, allocations: 423.3 kB / 0.632 GB, free: 15.79 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01141/0.5135, allocations: 7.483 MB / 0.6393 GB, free: 7.867 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/0.5155, allocations: 99.83 kB / 0.6394 GB, free: 7.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004223/0.5159, allocations: 120 kB / 0.6395 GB, free: 7.652 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.001139/0.517, allocations: 405 kB / 0.6399 GB, free: 7.246 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000543/0.5176, allocations: 155 kB / 0.6401 GB, free: 7.094 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00743/0.525, allocations: 2.191 MB / 0.6422 GB, free: 4.875 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.797e-05/0.525, allocations: 12 kB / 0.6422 GB, free: 4.863 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.525, allocations: 4 kB / 0.6422 GB, free: 4.859 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.746e-05/0.5251, allocations: 7.969 kB / 0.6422 GB, free: 4.852 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01064/0.5357, allocations: 3.932 MB / 0.6461 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.5357, allocations: 0 / 0.6461 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008078/0.5365, allocations: 171.8 kB / 0.6462 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004665/0.5412, allocations: 0.9209 MB / 0.6471 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/0.5413, allocations: 51.97 kB / 0.6472 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009365/0.5507, allocations: 6.77 MB / 0.6538 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.5507, allocations: 0 / 0.6538 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007859/0.5585, allocations: 2.903 MB / 0.6566 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004168/0.559, allocations: 216.1 kB / 0.6568 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000274/0.5592, allocations: 28.27 kB / 0.6569 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009767/0.5602, allocations: 35.98 kB / 0.6569 GB, free: 5.207 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002997/0.5605, allocations: 112.8 kB / 0.657 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.5606, allocations: 55.84 kB / 0.6571 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001731/0.5624, allocations: 1.302 MB / 0.6583 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.5624, allocations: 0 / 0.6583 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003094/0.5655, allocations: 0.9703 MB / 0.6593 GB, free: 2.766 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.01006/0.5755, allocations: 4.359 MB / 0.6635 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005125/0.5807, allocations: 2.418 MB / 0.6659 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.5807, allocations: 0 / 0.6659 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002337/0.583, allocations: 1.175 MB / 0.667 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001578/0.5846, allocations: 240.3 kB / 0.6673 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03374/0.6183, allocations: 16.48 MB / 0.6834 GB, free: 9.008 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001216/0.6195, allocations: 1.306 MB / 0.6846 GB, free: 7.672 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001169/0.6207, allocations: 331.3 kB / 0.685 GB, free: 7.348 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001131/0.6218, allocations: 0.7608 MB / 0.6857 GB, free: 6.586 MB / 0.5294 GB Notification: Performance of SimCode: time 1.292e-06/0.6218, allocations: 0 / 0.6857 GB, free: 6.586 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2989/0.9207, allocations: 51.1 MB / 0.7356 GB, free: 176.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.49/26.41, allocations: 12.09 kB / 0.7356 GB, free: 176.5 MB / 0.5606 GB " [Timeout remaining time 633] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 29.144812288926914] Failed to read output from testmodel.py, exit status != 0: 26.55366302211769 26.573788678 26.171711566 Calling exit ...