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.001665/0.001665, allocations: 107.6 kB / 18.95 MB, free: 2.805 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.001762/0.001762, allocations: 213.1 kB / 22.24 MB, free: 5.117 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.448/1.448, allocations: 230.6 MB / 256 MB, free: 7.734 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.1424/0.1424, allocations: 23.89 MB / 336.3 MB, free: 10.93 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.00307/0.00307, allocations: 75.89 kB / 471.1 MB, free: 7.469 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3263, allocations: 59.86 MB / 0.5185 GB, free: 9.582 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.07673/0.4031, allocations: 30.69 MB / 0.5485 GB, free: 9.273 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0355/0.4386, allocations: 25.5 MB / 0.5734 GB, free: 1.68 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002442/0.441, allocations: 39.69 kB / 0.5734 GB, free: 1.641 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001835/0.4428, allocations: 0.624 MB / 0.5741 GB, free: 1.012 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006861/0.4497, allocations: 2.2 MB / 0.5762 GB, free: 14.8 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01142/0.4611, allocations: 3.997 MB / 0.5801 GB, free: 10.78 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00499/0.4661, allocations: 3.081 MB / 0.5831 GB, free: 7.68 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002385/0.4685, allocations: 1.577 MB / 0.5847 GB, free: 6.059 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002107/0.4706, allocations: 1.488 MB / 0.5861 GB, free: 4.566 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002516/0.4731, allocations: 1.498 MB / 0.5876 GB, free: 3.062 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005844/0.4737, allocations: 296 kB / 0.5879 GB, free: 2.773 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008359/0.4821, allocations: 2.991 MB / 0.5908 GB, free: 15.77 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00104/0.4831, allocations: 0.697 MB / 0.5915 GB, free: 15.08 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001785/0.4849, allocations: 1.21 MB / 0.5926 GB, free: 13.86 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01403/0.4989, allocations: 6.56 MB / 0.599 GB, free: 7.277 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.4989, allocations: 4 kB / 0.599 GB, free: 7.273 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4989, allocations: 0 / 0.599 GB, free: 7.273 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.382e-05/0.499, allocations: 0 / 0.599 GB, free: 7.273 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.006524/0.5055, allocations: 3.323 MB / 0.6023 GB, free: 3.898 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.5056, allocations: 8.031 kB / 0.6023 GB, free: 3.891 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000409/0.506, allocations: 329.7 kB / 0.6026 GB, free: 3.559 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002334/0.5083, allocations: 0.5804 MB / 0.6032 GB, free: 2.977 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002615/0.5109, allocations: 1.364 MB / 0.6045 GB, free: 1.574 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002859/0.5112, allocations: 351.1 kB / 0.6048 GB, free: 1.191 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004078/0.5116, allocations: 240 kB / 0.6051 GB, free: 0.957 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005343/0.517, allocations: 3.09 MB / 0.6081 GB, free: 13.75 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.978e-05/0.517, allocations: 3.938 kB / 0.6081 GB, free: 13.75 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002468/0.5173, allocations: 96 kB / 0.6082 GB, free: 13.65 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.101e-05/0.5173, allocations: 60 kB / 0.6082 GB, free: 13.59 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005937/0.5232, allocations: 3.599 MB / 0.6118 GB, free: 9.992 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.01712/0.5404, allocations: 9.045 MB / 0.6206 GB, free: 0.7617 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003189/0.5435, allocations: 1.768 MB / 0.6223 GB, free: 14.98 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001733/0.5453, allocations: 1.024 MB / 0.6233 GB, free: 13.95 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01159/0.5569, allocations: 5.192 MB / 0.6284 GB, free: 8.715 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.41e-05/0.5569, allocations: 59.75 kB / 0.6284 GB, free: 8.648 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001422/0.5583, allocations: 302.5 kB / 0.6287 GB, free: 8.352 MB / 478.1 MB Notification: Performance of pre-optimization done (n=134): time 5.15e-06/0.5584, allocations: 0 / 0.6287 GB, free: 8.352 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03449/0.5928, allocations: 9.526 MB / 0.638 GB, free: 14.77 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.348e-05/0.5929, allocations: 124.8 kB / 0.6382 GB, free: 14.62 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001996/0.5949, allocations: 1.54 MB / 0.6397 GB, free: 13.07 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001955/0.5951, allocations: 53.7 kB / 0.6397 GB, free: 13.01 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009531/0.5961, allocations: 1.186 MB / 0.6409 GB, free: 11.81 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006346/0.5967, allocations: 0.6585 MB / 0.6415 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007664/0.5975, allocations: 0.5209 MB / 0.642 GB, free: 10.62 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.5976, allocations: 313.1 kB / 0.6423 GB, free: 10.31 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001698/0.5993, allocations: 0.9423 MB / 0.6432 GB, free: 9.363 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002593/0.6019, allocations: 1.906 MB / 0.6451 GB, free: 7.02 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004595/0.6065, allocations: 3.003 MB / 0.648 GB, free: 3.574 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.059e-05/0.6065, allocations: 11.94 kB / 0.648 GB, free: 3.562 MB / 494.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01056/0.6171, allocations: 3.902 MB / 0.6519 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.21e-05/0.6171, allocations: 23.98 kB / 0.6519 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.785e-05/0.6172, allocations: 35.94 kB / 0.6519 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005381/0.6226, allocations: 1.173 MB / 0.6531 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002193/0.6248, allocations: 0.5811 MB / 0.6536 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0106/0.6354, allocations: 7.15 MB / 0.6606 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001997/0.6374, allocations: 111.9 kB / 0.6607 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003098/0.6377, allocations: 163.9 kB / 0.6609 GB, free: 6.031 MB / 0.4981 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.0009736/0.6386, allocations: 488 kB / 0.6613 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004316/0.6391, allocations: 190.8 kB / 0.6615 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009609/0.6487, allocations: 3.242 MB / 0.6647 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.116e-05/0.6487, allocations: 20 kB / 0.6647 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.6487, allocations: 48 / 0.6647 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.934e-05/0.6487, allocations: 16.06 kB / 0.6647 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01358/0.6623, allocations: 5.109 MB / 0.6697 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.6623, allocations: 4 kB / 0.6697 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/0.6636, allocations: 307.6 kB / 0.67 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004877/0.6685, allocations: 1.049 MB / 0.671 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002374/0.6688, allocations: 75.89 kB / 0.6711 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008904/0.6777, allocations: 6.432 MB / 0.6774 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.6777, allocations: 128 / 0.6774 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01042/0.6881, allocations: 4.143 MB / 0.6814 GB, free: 400 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004551/0.6885, allocations: 170.7 kB / 0.6816 GB, free: 228 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002781/0.6888, allocations: 40 kB / 0.6816 GB, free: 188 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.6899, allocations: 43.98 kB / 0.6817 GB, free: 144 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004225/0.6903, allocations: 185.5 kB / 0.6819 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001753/0.6905, allocations: 79.95 kB / 0.6819 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001322/0.6918, allocations: 0.9625 MB / 0.6829 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6918, allocations: 4 kB / 0.6829 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003564/0.6954, allocations: 1.266 MB / 0.6841 GB, free: 13.64 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.01299/0.7083, allocations: 5.9 MB / 0.6899 GB, free: 7.668 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005944/0.7143, allocations: 2.835 MB / 0.6926 GB, free: 4.797 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.7143, allocations: 4.25 kB / 0.6926 GB, free: 4.793 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003019/0.7173, allocations: 1.464 MB / 0.6941 GB, free: 3.289 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001884/0.7192, allocations: 317.3 kB / 0.6944 GB, free: 2.984 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03789/0.7571, allocations: 19.18 MB / 0.7131 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/0.7582, allocations: 0.9145 MB / 0.714 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00179/0.76, allocations: 458.5 kB / 0.7144 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001518/0.7615, allocations: 1.012 MB / 0.7154 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of SimCode: time 1.102e-06/0.7615, allocations: 0 / 0.7154 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3382/1.1, allocations: 66.24 MB / 0.7801 GB, free: 147.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.3/17.4, allocations: 8.719 kB / 0.7801 GB, free: 147.4 MB / 0.5606 GB " [Timeout remaining time 642] (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 os._exit(0), Time elapsed: 20.33976134005934] Failed to read output from testmodel.py, exit status != 0: 17.558521951083094 17.574929135 17.072200007 Calling exit ...