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.001319/0.001319, allocations: 96.42 kB / 19.7 MB, free: 2.129 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.001469/0.001469, allocations: 208.2 kB / 22.99 MB, free: 4.953 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.435/1.435, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.1405/0.1405, allocations: 23.92 MB / 337.1 MB, free: 10.96 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: translateModel(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis") [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.002077/0.002077, allocations: 63.91 kB / 472.4 MB, free: 6.992 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3424, allocations: 59.88 MB / 0.5198 GB, free: 9.785 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.07575/0.4181, allocations: 29.19 MB / 0.5483 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02895/0.4471, allocations: 19.46 MB / 0.5674 GB, free: 8.906 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002413/0.4495, allocations: 31.75 kB / 0.5674 GB, free: 8.875 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002256/0.4517, allocations: 0.5288 MB / 0.5679 GB, free: 8.473 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005245/0.457, allocations: 1.316 MB / 0.5692 GB, free: 7.254 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01063/0.4676, allocations: 3.344 MB / 0.5725 GB, free: 3.891 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004741/0.4724, allocations: 2.399 MB / 0.5748 GB, free: 1.477 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002203/0.4746, allocations: 1.267 MB / 0.576 GB, free: 168 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001751/0.4763, allocations: 1.06 MB / 0.5771 GB, free: 15.1 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0021/0.4784, allocations: 1.226 MB / 0.5783 GB, free: 13.87 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005964/0.479, allocations: 235.9 kB / 0.5785 GB, free: 13.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006819/0.4858, allocations: 2.285 MB / 0.5807 GB, free: 11.35 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009253/0.4867, allocations: 0.5297 MB / 0.5812 GB, free: 10.82 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001611/0.4884, allocations: 0.957 MB / 0.5822 GB, free: 9.859 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01177/0.5001, allocations: 5.015 MB / 0.5871 GB, free: 4.824 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.056e-06/0.5001, allocations: 0 / 0.5871 GB, free: 4.824 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.5001, allocations: 3.938 kB / 0.5871 GB, free: 4.82 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001023/0.5002, allocations: 3.938 kB / 0.5871 GB, free: 4.816 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.007088/0.5073, allocations: 2.659 MB / 0.5897 GB, free: 2.113 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.5074, allocations: 12.03 kB / 0.5897 GB, free: 2.102 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002143/0.5095, allocations: 0.5064 MB / 0.5902 GB, free: 1.594 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002649/0.5122, allocations: 1.137 MB / 0.5913 GB, free: 432 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002838/0.5124, allocations: 262.9 kB / 0.5915 GB, free: 144 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005409/0.513, allocations: 188.1 kB / 0.5917 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004905/0.5179, allocations: 2.716 MB / 0.5944 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.273e-05/0.5179, allocations: 0 / 0.5944 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001904/0.5181, allocations: 76 kB / 0.5944 GB, free: 13.09 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.328e-05/0.5182, allocations: 48 kB / 0.5945 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005545/0.5237, allocations: 3.318 MB / 0.5977 GB, free: 9.727 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.01465/0.5384, allocations: 7.293 MB / 0.6049 GB, free: 2.281 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002227/0.5406, allocations: 1.109 MB / 0.6059 GB, free: 1.148 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001064/0.5417, allocations: 0.5911 MB / 0.6065 GB, free: 0.543 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00841/0.5501, allocations: 3.387 MB / 0.6098 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.28e-05/0.5501, allocations: 47.16 kB / 0.6099 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009109/0.551, allocations: 186.9 kB / 0.61 GB, free: 12.89 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.547e-06/0.551, allocations: 0 / 0.61 GB, free: 12.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02778/0.5788, allocations: 6.909 MB / 0.6168 GB, free: 5.922 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.716e-05/0.5789, allocations: 119.8 kB / 0.6169 GB, free: 5.781 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002515/0.5814, allocations: 1.827 MB / 0.6187 GB, free: 3.941 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002558/0.5817, allocations: 41.7 kB / 0.6187 GB, free: 3.895 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008526/0.5825, allocations: 1.053 MB / 0.6198 GB, free: 2.828 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005496/0.5831, allocations: 432.4 kB / 0.6202 GB, free: 2.402 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006724/0.5838, allocations: 423.3 kB / 0.6206 GB, free: 1.98 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.5839, allocations: 305.2 kB / 0.6209 GB, free: 1.68 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001481/0.5854, allocations: 0.8746 MB / 0.6217 GB, free: 0.8008 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002201/0.5876, allocations: 1.608 MB / 0.6233 GB, free: 14.85 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003812/0.5914, allocations: 2.344 MB / 0.6256 GB, free: 12.17 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.202e-05/0.5914, allocations: 8 kB / 0.6256 GB, free: 12.16 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.009177/0.6006, allocations: 3.319 MB / 0.6288 GB, free: 8.816 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.197e-05/0.6007, allocations: 12 kB / 0.6288 GB, free: 8.805 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.372e-05/0.6007, allocations: 24 kB / 0.6289 GB, free: 8.781 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005016/0.6057, allocations: 1.042 MB / 0.6299 GB, free: 7.723 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/0.6074, allocations: 439.3 kB / 0.6303 GB, free: 7.293 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/0.6183, allocations: 7.041 MB / 0.6372 GB, free: 15.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/0.6201, allocations: 95.84 kB / 0.6373 GB, free: 15.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003471/0.6204, allocations: 124.1 kB / 0.6374 GB, free: 15.7 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.0008994/0.6213, allocations: 406.6 kB / 0.6378 GB, free: 15.29 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004588/0.6218, allocations: 143 kB / 0.6379 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00661/0.6284, allocations: 2.178 MB / 0.64 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.87e-05/0.6284, allocations: 16.05 kB / 0.64 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.6284, allocations: 3.984 kB / 0.6401 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-05/0.6285, allocations: 11.97 kB / 0.6401 GB, free: 12.92 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/0.6387, allocations: 3.508 MB / 0.6435 GB, free: 9.344 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/0.6387, allocations: 0 / 0.6435 GB, free: 9.344 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008272/0.6395, allocations: 175.8 kB / 0.6437 GB, free: 9.172 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004387/0.6439, allocations: 0.9287 MB / 0.6446 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002635/0.6442, allocations: 47.95 kB / 0.6446 GB, free: 8.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008948/0.6531, allocations: 6.341 MB / 0.6508 GB, free: 1.516 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.6531, allocations: 3.938 kB / 0.6508 GB, free: 1.512 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007626/0.6608, allocations: 2.891 MB / 0.6536 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004194/0.6612, allocations: 123.2 kB / 0.6537 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/0.6614, allocations: 28.12 kB / 0.6538 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008441/0.6623, allocations: 31.98 kB / 0.6538 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002946/0.6626, allocations: 124.6 kB / 0.6539 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.6627, allocations: 51.97 kB / 0.654 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001597/0.6643, allocations: 1.248 MB / 0.6552 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8.1e-08/0.6643, allocations: 0 / 0.6552 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003359/0.6677, allocations: 0.9741 MB / 0.6561 GB, free: 11.99 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.002099/0.6698, allocations: 1.009 MB / 0.6571 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005243/0.675, allocations: 2.355 MB / 0.6594 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/0.675, allocations: 192 / 0.6594 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002353/0.6774, allocations: 1.106 MB / 0.6605 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.6788, allocations: 231.8 kB / 0.6607 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006081/0.6849, allocations: 3.266 MB / 0.6639 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008492/0.6858, allocations: 0.7293 MB / 0.6646 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006719/0.6864, allocations: 219.3 kB / 0.6648 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of SimCode: time 1.733e-06/0.6864, allocations: 0 / 0.6648 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of Templates: time 0.0817/0.7681, allocations: 65.84 MB / 0.7291 GB, free: 1.059 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.makefile [Timeout 660] (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 & ./Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 11.852300095022656] Failed to read output from testmodel.py, exit status != 0: 0.9661246879841201 0.978890935 0.47539329599999997 Calling exit ...