Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrolysisMethanation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Physiolibrary.Chemical.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrolysisMethanation") translateModel(Physiolibrary.Chemical.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrolysisMethanation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 183.3 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 222.9 MB / 239.7 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009134/0.0009134, allocations: 101.3 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.365/0.365, allocations: 36.67 MB / 376.7 MB, free: 41.49 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 67.91 kB / 446.4 MB, free: 11.81 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1076, allocations: 58.91 MB / 0.4935 GB, free: 0.8398 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Chemical.mo:4671:7-4671: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/Physiolibrary 3.0.0-master/Chemical.mo:4671:7-4671: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(Physiolibrary.Chemical.Examples.ClimateChange.ElectrolysisMethanation): time 0.2324/0.34, allocations: 29.34 MB / 0.5221 GB, free: 29.94 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02908/0.3691, allocations: 28.71 MB / 0.5502 GB, free: 8.996 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002799/0.3719, allocations: 50 kB / 0.5502 GB, free: 8.977 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002053/0.374, allocations: 0.6078 MB / 0.5508 GB, free: 8.66 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006791/0.3808, allocations: 1.939 MB / 0.5527 GB, free: 7.496 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01362/0.3945, allocations: 3.441 MB / 0.5561 GB, free: 5.469 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005778/0.4003, allocations: 3.022 MB / 0.559 GB, free: 4.047 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002555/0.4028, allocations: 1.699 MB / 0.5607 GB, free: 3.301 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002133/0.405, allocations: 1.404 MB / 0.562 GB, free: 2.207 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002334/0.4073, allocations: 1.614 MB / 0.5636 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004533/0.4078, allocations: 196 kB / 0.5638 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01043/0.4182, allocations: 3.009 MB / 0.5667 GB, free: 14.01 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001027/0.4193, allocations: 0.6037 MB / 0.5673 GB, free: 13.54 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002045/0.4214, allocations: 1.343 MB / 0.5686 GB, free: 12.31 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01566/0.437, allocations: 6.081 MB / 0.5746 GB, free: 7.52 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.4371, allocations: 4 kB / 0.5746 GB, free: 7.516 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4371, allocations: 0 / 0.5746 GB, free: 7.516 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001334/0.4372, allocations: 0 / 0.5746 GB, free: 7.516 MB / 394.7 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.008289/0.4455, allocations: 3.326 MB / 0.5778 GB, free: 4.246 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.4456, allocations: 8.031 kB / 0.5778 GB, free: 4.238 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002556/0.4482, allocations: 0.5719 MB / 0.5784 GB, free: 3.668 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002592/0.4508, allocations: 1.38 MB / 0.5798 GB, free: 2.242 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002585/0.4511, allocations: 274.2 kB / 0.58 GB, free: 1.953 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004011/0.4515, allocations: 243.9 kB / 0.5802 GB, free: 1.715 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004904/0.4564, allocations: 3.033 MB / 0.5832 GB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.61e-05/0.4565, allocations: 7.938 kB / 0.5832 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002346/0.4567, allocations: 104 kB / 0.5833 GB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.056e-05/0.4568, allocations: 60 kB / 0.5834 GB, free: 14.4 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005565/0.4623, allocations: 3.615 MB / 0.5869 GB, free: 10.79 MB / 410.7 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.01662/0.479, allocations: 10.49 MB / 0.5971 GB, free: 15.92 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003024/0.482, allocations: 2.259 MB / 0.5994 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001755/0.4838, allocations: 1.131 MB / 0.6005 GB, free: 12.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01421/0.4981, allocations: 8.786 MB / 0.609 GB, free: 2.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.206e-05/0.4981, allocations: 51.88 kB / 0.6091 GB, free: 2.711 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001331/0.4995, allocations: 270 kB / 0.6093 GB, free: 2.445 MB / 426.7 MB Notification: Performance of pre-optimization done (n=134): time 8.145e-06/0.4995, allocations: 0 / 0.6093 GB, free: 2.445 MB / 426.7 MB Notification: Performance of matching and sorting (n=181): time 0.0375/0.537, allocations: 9.888 MB / 0.619 GB, free: 8.43 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.407e-05/0.5371, allocations: 128.8 kB / 0.6191 GB, free: 8.281 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002064/0.5392, allocations: 1.462 MB / 0.6206 GB, free: 6.809 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003513/0.5396, allocations: 53.7 kB / 0.6206 GB, free: 6.75 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007344/0.5403, allocations: 1.147 MB / 0.6217 GB, free: 5.586 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007324/0.5411, allocations: 0.6279 MB / 0.6223 GB, free: 4.949 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009712/0.542, allocations: 0.5129 MB / 0.6228 GB, free: 4.43 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.332e-05/0.5422, allocations: 309.1 kB / 0.6231 GB, free: 4.125 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/0.5439, allocations: 0.9539 MB / 0.6241 GB, free: 3.168 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002456/0.5464, allocations: 1.909 MB / 0.6259 GB, free: 0.8164 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004362/0.5508, allocations: 3 MB / 0.6289 GB, free: 13.37 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.497e-05/0.5508, allocations: 11.94 kB / 0.6289 GB, free: 13.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01149/0.5623, allocations: 4.002 MB / 0.6328 GB, free: 9.332 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.574e-05/0.5624, allocations: 20 kB / 0.6328 GB, free: 9.312 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.09e-05/0.5624, allocations: 28 kB / 0.6328 GB, free: 9.285 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005928/0.5684, allocations: 1.241 MB / 0.634 GB, free: 8.031 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002313/0.5707, allocations: 0.585 MB / 0.6346 GB, free: 7.445 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009579/0.5803, allocations: 6.916 MB / 0.6414 GB, free: 104 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002325/0.5827, allocations: 147.8 kB / 0.6415 GB, free: 15.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004803/0.5832, allocations: 163.9 kB / 0.6417 GB, free: 15.79 MB / 474.7 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.001246/0.5844, allocations: 485.8 kB / 0.6421 GB, free: 15.31 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005621/0.585, allocations: 189.7 kB / 0.6423 GB, free: 15.12 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01071/0.5957, allocations: 3.354 MB / 0.6456 GB, free: 11.76 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-05/0.5958, allocations: 16 kB / 0.6456 GB, free: 11.75 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/0.5958, allocations: 4 kB / 0.6456 GB, free: 11.74 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.278e-05/0.5958, allocations: 15.95 kB / 0.6456 GB, free: 11.73 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01449/0.6103, allocations: 5.553 MB / 0.651 GB, free: 6.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.477e-05/0.6104, allocations: 4.281 kB / 0.651 GB, free: 6.066 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/0.6117, allocations: 315.6 kB / 0.6513 GB, free: 5.758 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005354/0.6171, allocations: 1.111 MB / 0.6524 GB, free: 4.633 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003529/0.6175, allocations: 79.83 kB / 0.6525 GB, free: 4.555 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008402/0.6259, allocations: 6.273 MB / 0.6586 GB, free: 13.85 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.626, allocations: 4 kB / 0.6586 GB, free: 13.85 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04163/0.6676, allocations: 16.57 MB / 0.6748 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004547/0.6681, allocations: 230.8 kB / 0.675 GB, free: 12.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004813/0.6686, allocations: 44.06 kB / 0.6751 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/0.6701, allocations: 71.89 kB / 0.6751 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005871/0.6707, allocations: 181.6 kB / 0.6753 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002931/0.671, allocations: 83.95 kB / 0.6754 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001379/0.6724, allocations: 0.9546 MB / 0.6763 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.21e-07/0.6724, allocations: 0 / 0.6763 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005601/0.678, allocations: 1.464 MB / 0.6778 GB, free: 9.742 MB / 0.4948 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.003698/0.6817, allocations: 1.289 MB / 0.679 GB, free: 8.441 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007103/0.6888, allocations: 3.097 MB / 0.682 GB, free: 5.289 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/0.6889, allocations: 0 / 0.682 GB, free: 5.289 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003715/0.6926, allocations: 1.653 MB / 0.6837 GB, free: 3.586 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002272/0.6949, allocations: 298 kB / 0.6839 GB, free: 3.293 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2243/0.9192, allocations: 6.359 MB / 0.6901 GB, free: 146.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001345/0.9206, allocations: 1.548 MB / 0.6917 GB, free: 145.4 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002442/0.9231, allocations: 486.2 kB / 0.6921 GB, free: 145.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007479/0.9238, allocations: 287.6 kB / 0.6924 GB, free: 145.3 MB / 0.4948 GB Notification: Performance of SimCode: time 7.12e-07/0.9238, allocations: 0 / 0.6924 GB, free: 145.3 MB / 0.4948 GB Notification: Performance of Templates: time 0.08158/1.005, allocations: 50.2 MB / 0.7414 GB, free: 129.4 MB / 0.4948 GB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrolysisMethanation.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrolysisMethanation.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrolysisMethanation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1)