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.001783/0.001783, allocations: 103.6 kB / 18.95 MB, free: 2.688 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.002198/0.002198, allocations: 216 kB / 22.24 MB, free: 5.242 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.422/1.422, allocations: 230.6 MB / 256 MB, free: 7.809 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.1413/0.1413, allocations: 23.99 MB / 336.4 MB, free: 10.86 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.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.002124/0.002124, allocations: 67.89 kB / 471.3 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3095, allocations: 59.89 MB / 0.5187 GB, free: 9.516 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.0758/0.3853, allocations: 29.29 MB / 0.5473 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02777/0.4131, allocations: 19.46 MB / 0.5663 GB, free: 8.715 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002134/0.4152, allocations: 35.75 kB / 0.5664 GB, free: 8.68 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002056/0.4173, allocations: 0.5251 MB / 0.5669 GB, free: 8.281 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004911/0.4222, allocations: 1.314 MB / 0.5682 GB, free: 7.098 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01063/0.4328, allocations: 3.344 MB / 0.5714 GB, free: 3.734 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004228/0.437, allocations: 2.402 MB / 0.5738 GB, free: 1.316 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002148/0.4392, allocations: 1.231 MB / 0.575 GB, free: 40 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001786/0.441, allocations: 1.063 MB / 0.576 GB, free: 14.97 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002256/0.4432, allocations: 1.077 MB / 0.5771 GB, free: 13.89 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007627/0.444, allocations: 236 kB / 0.5773 GB, free: 13.66 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007027/0.451, allocations: 2.231 MB / 0.5795 GB, free: 11.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008865/0.4519, allocations: 0.5375 MB / 0.58 GB, free: 10.89 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001728/0.4536, allocations: 0.957 MB / 0.5809 GB, free: 9.926 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01147/0.4651, allocations: 5.011 MB / 0.5858 GB, free: 4.895 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.4651, allocations: 0 / 0.5858 GB, free: 4.895 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4651, allocations: 0 / 0.5858 GB, free: 4.895 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.014e-05/0.4652, allocations: 0 / 0.5858 GB, free: 4.895 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.005571/0.4708, allocations: 2.655 MB / 0.5884 GB, free: 2.195 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.4708, allocations: 16.02 kB / 0.5884 GB, free: 2.18 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003846/0.4712, allocations: 266.5 kB / 0.5887 GB, free: 1.91 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002041/0.4732, allocations: 0.5103 MB / 0.5892 GB, free: 1.398 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002345/0.4756, allocations: 1.133 MB / 0.5903 GB, free: 236 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002474/0.4758, allocations: 258.8 kB / 0.5905 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003659/0.4762, allocations: 188 kB / 0.5907 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004495/0.4807, allocations: 2.712 MB / 0.5934 GB, free: 12.99 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.626e-05/0.4807, allocations: 4 kB / 0.5934 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002047/0.4809, allocations: 80 kB / 0.5935 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.274e-05/0.481, allocations: 48 kB / 0.5935 GB, free: 12.86 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005382/0.4864, allocations: 3.322 MB / 0.5967 GB, free: 9.531 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.01455/0.5009, allocations: 7.527 MB / 0.6041 GB, free: 1.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002233/0.5031, allocations: 1.101 MB / 0.6052 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/0.5042, allocations: 0.595 MB / 0.6057 GB, free: 112 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008523/0.5127, allocations: 3.397 MB / 0.6091 GB, free: 12.68 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.737e-05/0.5128, allocations: 55.08 kB / 0.6091 GB, free: 12.62 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009464/0.5137, allocations: 198.8 kB / 0.6093 GB, free: 12.43 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 4.268e-06/0.5137, allocations: 0 / 0.6093 GB, free: 12.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02822/0.5419, allocations: 6.917 MB / 0.6161 GB, free: 5.453 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.694e-05/0.542, allocations: 119.8 kB / 0.6162 GB, free: 5.312 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002582/0.5446, allocations: 1.939 MB / 0.6181 GB, free: 3.355 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002526/0.5449, allocations: 49.7 kB / 0.6181 GB, free: 3.301 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008297/0.5457, allocations: 1.041 MB / 0.6191 GB, free: 2.246 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004657/0.5462, allocations: 428.4 kB / 0.6195 GB, free: 1.824 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006387/0.5468, allocations: 419.3 kB / 0.6199 GB, free: 1.406 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.5469, allocations: 305.1 kB / 0.6202 GB, free: 1.105 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001401/0.5483, allocations: 0.8746 MB / 0.6211 GB, free: 232 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002127/0.5505, allocations: 1.604 MB / 0.6227 GB, free: 14.28 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003572/0.554, allocations: 2.352 MB / 0.625 GB, free: 11.59 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.22e-05/0.554, allocations: 8 kB / 0.625 GB, free: 11.58 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008528/0.5626, allocations: 3.323 MB / 0.6282 GB, free: 8.234 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.5626, allocations: 16 kB / 0.6282 GB, free: 8.219 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.143e-05/0.5627, allocations: 24 kB / 0.6282 GB, free: 8.195 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004773/0.5674, allocations: 1.038 MB / 0.6293 GB, free: 7.141 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/0.569, allocations: 431.3 kB / 0.6297 GB, free: 6.719 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/0.5794, allocations: 7.13 MB / 0.6366 GB, free: 15.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/0.5811, allocations: 95.84 kB / 0.6367 GB, free: 15.12 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002437/0.5813, allocations: 120 kB / 0.6368 GB, free: 15 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.0007802/0.5821, allocations: 413 kB / 0.6372 GB, free: 14.59 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003897/0.5825, allocations: 151 kB / 0.6374 GB, free: 14.44 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006597/0.5891, allocations: 2.175 MB / 0.6395 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/0.5891, allocations: 19.88 kB / 0.6395 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.5891, allocations: 8 kB / 0.6395 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.202e-05/0.5892, allocations: 3.984 kB / 0.6395 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01005/0.5992, allocations: 3.694 MB / 0.6431 GB, free: 8.426 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.771e-05/0.5992, allocations: 7.938 kB / 0.6431 GB, free: 8.418 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008381/0.6001, allocations: 175.9 kB / 0.6433 GB, free: 8.246 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004331/0.6044, allocations: 0.9286 MB / 0.6442 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001565/0.6045, allocations: 43.97 kB / 0.6443 GB, free: 7.258 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008629/0.6132, allocations: 6.409 MB / 0.6505 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.6132, allocations: 3.984 kB / 0.6505 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007329/0.6205, allocations: 2.9 MB / 0.6534 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000412/0.6209, allocations: 139.1 kB / 0.6535 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002189/0.6211, allocations: 20 kB / 0.6535 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008656/0.622, allocations: 39.98 kB / 0.6535 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002809/0.6223, allocations: 112.7 kB / 0.6537 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/0.6224, allocations: 59.95 kB / 0.6537 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001622/0.624, allocations: 1.326 MB / 0.655 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.624, allocations: 0 / 0.655 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002901/0.6269, allocations: 0.9741 MB / 0.656 GB, free: 10.86 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.009257/0.6362, allocations: 4.352 MB / 0.6602 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0048/0.641, allocations: 2.363 MB / 0.6625 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.641, allocations: 0 / 0.6625 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002119/0.6431, allocations: 1.098 MB / 0.6636 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/0.6446, allocations: 243.5 kB / 0.6638 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03081/0.6754, allocations: 16.57 MB / 0.68 GB, free: 1.18 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008657/0.6763, allocations: 0.7295 MB / 0.6807 GB, free: 428 kB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001162/0.6774, allocations: 331.3 kB / 0.681 GB, free: 96 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/0.6785, allocations: 0.757 MB / 0.6818 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of SimCode: time 2.144e-06/0.6785, allocations: 0 / 0.6818 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3179/0.9964, allocations: 52.35 MB / 0.7329 GB, free: 177.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.48/16.47, allocations: 8.266 kB / 0.7329 GB, free: 177.7 MB / 0.5606 GB " [Timeout remaining time 643] (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 os._exit(0), Time elapsed: 19.29500160505995] Failed to read output from testmodel.py, exit status != 0: 16.625952097121626 16.645430012 16.176447858 Calling exit ...