Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001657/0.001657, allocations: 112.4 kB / 17.13 MB, free: 6.008 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.001741/0.001741, allocations: 211.2 kB / 20.1 MB, free: 3.055 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.489/1.489, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1373/0.1373, allocations: 23.9 MB / 333.4 MB, free: 1.156 MB / 254.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: translateModel(Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation") translateModel(Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation") [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.002036/0.002036, allocations: 67.94 kB / 467.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09756/0.09959, allocations: 59.84 MB / 0.5147 GB, free: 12.35 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.ElectrolysisMethanation): time 0.04625/0.1458, allocations: 31.97 MB / 0.5459 GB, free: 12.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03828/0.1841, allocations: 29 MB / 0.5743 GB, free: 15.3 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001552/0.1857, allocations: 43.69 kB / 0.5743 GB, free: 15.25 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001938/0.1876, allocations: 0.6862 MB / 0.575 GB, free: 14.56 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006515/0.1941, allocations: 2.254 MB / 0.5772 GB, free: 12.29 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01067/0.2048, allocations: 3.946 MB / 0.581 GB, free: 8.324 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00491/0.2097, allocations: 3.081 MB / 0.584 GB, free: 5.227 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002495/0.2122, allocations: 1.643 MB / 0.5857 GB, free: 3.535 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002406/0.2146, allocations: 1.484 MB / 0.5871 GB, free: 2.047 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002968/0.2176, allocations: 1.686 MB / 0.5887 GB, free: 364 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005041/0.2181, allocations: 299.9 kB / 0.589 GB, free: 64 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2331/0.4512, allocations: 3.179 MB / 0.5921 GB, free: 25.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009918/0.4522, allocations: 0.6919 MB / 0.5928 GB, free: 25.75 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002016/0.4542, allocations: 1.438 MB / 0.5942 GB, free: 25.75 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01382/0.468, allocations: 6.575 MB / 0.6006 GB, free: 25.15 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.468, allocations: 0.9375 kB / 0.6006 GB, free: 25.15 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.468, allocations: 1.031 kB / 0.6006 GB, free: 25.15 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.126e-05/0.4681, allocations: 0 / 0.6006 GB, free: 25.15 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.008301/0.4764, allocations: 3.404 MB / 0.604 GB, free: 23.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.4765, allocations: 9.219 kB / 0.604 GB, free: 23.61 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002736/0.4792, allocations: 0.579 MB / 0.6045 GB, free: 23.46 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002644/0.4818, allocations: 1.427 MB / 0.6059 GB, free: 23.04 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001885/0.482, allocations: 266.6 kB / 0.6062 GB, free: 22.94 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004507/0.4825, allocations: 247.3 kB / 0.6064 GB, free: 22.94 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004884/0.4874, allocations: 3.051 MB / 0.6094 GB, free: 22.64 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.818e-05/0.4874, allocations: 5.438 kB / 0.6094 GB, free: 22.64 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003607/0.4878, allocations: 96.41 kB / 0.6095 GB, free: 22.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.541e-05/0.4878, allocations: 59.16 kB / 0.6096 GB, free: 22.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005465/0.4933, allocations: 3.624 MB / 0.6131 GB, free: 22.17 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.01513/0.5084, allocations: 10.55 MB / 0.6234 GB, free: 15.87 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002676/0.5111, allocations: 2.164 MB / 0.6255 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001547/0.5126, allocations: 1.019 MB / 0.6265 GB, free: 13.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01104/0.5237, allocations: 8.829 MB / 0.6351 GB, free: 6.316 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.5237, allocations: 56.12 kB / 0.6352 GB, free: 6.27 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001447/0.5252, allocations: 307.2 kB / 0.6355 GB, free: 6.086 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.266e-06/0.5252, allocations: 2.688 kB / 0.6355 GB, free: 6.086 MB / 446.1 MB Notification: Performance of matching and sorting (n=181): time 0.03489/0.56, allocations: 9.764 MB / 0.645 GB, free: 13.27 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.681e-05/0.5601, allocations: 128.8 kB / 0.6451 GB, free: 13.11 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002109/0.5622, allocations: 1.462 MB / 0.6466 GB, free: 11.64 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001729/0.5624, allocations: 53.7 kB / 0.6466 GB, free: 11.58 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000913/0.5633, allocations: 1.187 MB / 0.6478 GB, free: 10.39 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006473/0.564, allocations: 0.6629 MB / 0.6484 GB, free: 9.742 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009374/0.5649, allocations: 0.517 MB / 0.6489 GB, free: 9.219 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.5651, allocations: 305.1 kB / 0.6492 GB, free: 8.918 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/0.5668, allocations: 0.9423 MB / 0.6501 GB, free: 7.973 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002673/0.5695, allocations: 1.897 MB / 0.652 GB, free: 5.68 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004673/0.5742, allocations: 2.994 MB / 0.6549 GB, free: 2.453 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/0.5742, allocations: 12.09 kB / 0.6549 GB, free: 2.445 MB / 462.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01123/0.5854, allocations: 3.885 MB / 0.6587 GB, free: 14.77 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.04e-05/0.5854, allocations: 16 kB / 0.6587 GB, free: 14.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.883e-05/0.5855, allocations: 35.94 kB / 0.6588 GB, free: 14.72 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005984/0.5915, allocations: 1.174 MB / 0.6599 GB, free: 13.56 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002282/0.5938, allocations: 0.5851 MB / 0.6605 GB, free: 13.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.6053, allocations: 7.516 MB / 0.6678 GB, free: 5.141 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002214/0.6075, allocations: 117.1 kB / 0.6679 GB, free: 5.031 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003421/0.6078, allocations: 164.9 kB / 0.6681 GB, free: 4.875 MB / 478.1 MB 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.001051/0.6089, allocations: 483.6 kB / 0.6686 GB, free: 4.434 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004443/0.6093, allocations: 186.8 kB / 0.6687 GB, free: 4.25 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01041/0.6197, allocations: 3.236 MB / 0.6719 GB, free: 1.098 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-05/0.6197, allocations: 20 kB / 0.6719 GB, free: 1.078 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.6198, allocations: 6.688 kB / 0.6719 GB, free: 1.074 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.398e-05/0.6198, allocations: 7.969 kB / 0.6719 GB, free: 1.066 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01402/0.6338, allocations: 5.437 MB / 0.6772 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.6338, allocations: 4 kB / 0.6772 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001326/0.6351, allocations: 308.2 kB / 0.6775 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005034/0.6402, allocations: 1.036 MB / 0.6785 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000163/0.6403, allocations: 78.59 kB / 0.6786 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009199/0.6495, allocations: 6.813 MB / 0.6853 GB, free: 3.07 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.6495, allocations: 0 / 0.6853 GB, free: 3.07 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01044/0.66, allocations: 4.129 MB / 0.6893 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005036/0.6605, allocations: 242.5 kB / 0.6895 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003043/0.6608, allocations: 44.86 kB / 0.6896 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.6619, allocations: 46.64 kB / 0.6896 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004032/0.6623, allocations: 180 kB / 0.6898 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001919/0.6625, allocations: 79.95 kB / 0.6899 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001316/0.6638, allocations: 0.9573 MB / 0.6908 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.6638, allocations: 0 / 0.6908 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004045/0.6679, allocations: 1.266 MB / 0.692 GB, free: 12.11 MB / 0.4981 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.002502/0.6704, allocations: 1.324 MB / 0.6933 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00586/0.6762, allocations: 2.917 MB / 0.6962 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.6762, allocations: 0 / 0.6962 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003067/0.6793, allocations: 1.528 MB / 0.6977 GB, free: 6.613 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/0.6811, allocations: 313.7 kB / 0.698 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007911/0.689, allocations: 4.163 MB / 0.702 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001218/0.6902, allocations: 1.482 MB / 0.7035 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00104/0.6913, allocations: 360.8 kB / 0.7038 GB, free: 432 kB / 0.4981 GB Notification: Performance of SimCode: time 8.62e-07/0.6913, allocations: 3.938 kB / 0.7038 GB, free: 428 kB / 0.4981 GB Notification: Performance of Templates: time 0.09234/0.7836, allocations: 81.46 MB / 0.7834 GB, free: 15.42 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.sim & ./Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 11.470368613983737] Failed to read output from testmodel.py, exit status != 0: 0.7917350009956863 0.805167742 0.33411739 Calling exit ...