Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.conf.json 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/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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") translateModel(Chemical.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001289, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 191.3 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2009/0.2009, allocations: 15.32 MB / 305.3 MB, free: 15.31 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 59.91 kB / 369.6 MB, free: 4.445 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.107, allocations: 53.62 MB / 423.3 MB, free: 14.77 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.ClimateChange.ElectrolysisMethanation): time 0.3777/0.4848, allocations: 31.16 MB / 454.4 MB, free: 38.44 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02546/0.5103, allocations: 28.85 MB / 483.3 MB, free: 24.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002703/0.513, allocations: 52.94 kB / 483.3 MB, free: 24.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001968/0.515, allocations: 0.6102 MB / 483.9 MB, free: 23.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006508/0.5215, allocations: 1.98 MB / 485.9 MB, free: 22.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009925/0.5315, allocations: 3.441 MB / 489.4 MB, free: 20.55 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00373/0.5353, allocations: 2.992 MB / 492.4 MB, free: 19.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001954/0.5372, allocations: 1.702 MB / 494.1 MB, free: 18.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002309/0.5396, allocations: 1.394 MB / 495.4 MB, free: 17.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002411/0.542, allocations: 1.615 MB / 497.1 MB, free: 17.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004993/0.5425, allocations: 198.1 kB / 497.3 MB, free: 17.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01075/0.5533, allocations: 3.066 MB / 0.4886 GB, free: 16.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001106/0.5544, allocations: 0.6083 MB / 0.4892 GB, free: 15.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001987/0.5564, allocations: 1.347 MB / 0.4905 GB, free: 14.56 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01588/0.5723, allocations: 5.952 MB / 0.4963 GB, free: 9.727 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.5723, allocations: 0 / 0.4963 GB, free: 9.727 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5723, allocations: 0.6562 kB / 0.4963 GB, free: 9.727 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.509e-05/0.5724, allocations: 0 / 0.4963 GB, free: 9.727 MB / 366.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.006988/0.5794, allocations: 3.342 MB / 0.4996 GB, free: 6.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.5795, allocations: 11.97 kB / 0.4996 GB, free: 6.668 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002293/0.5818, allocations: 0.5604 MB / 0.5001 GB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002115/0.5839, allocations: 1.372 MB / 0.5015 GB, free: 5.023 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/0.5841, allocations: 263.9 kB / 0.5017 GB, free: 4.746 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003157/0.5844, allocations: 245.3 kB / 0.502 GB, free: 4.508 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004477/0.5889, allocations: 3.038 MB / 0.5049 GB, free: 1.957 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.195e-05/0.5889, allocations: 4 kB / 0.5049 GB, free: 1.953 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002196/0.5892, allocations: 96 kB / 0.505 GB, free: 1.859 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.117e-05/0.5892, allocations: 60 kB / 0.5051 GB, free: 1.801 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004846/0.594, allocations: 3.611 MB / 0.5086 GB, free: 14.63 MB / 382.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.0159/0.61, allocations: 10.46 MB / 0.5188 GB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003191/0.6132, allocations: 2.253 MB / 0.521 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001647/0.6149, allocations: 1.113 MB / 0.5221 GB, free: 324 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01387/0.6287, allocations: 8.763 MB / 0.5307 GB, free: 6.695 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.805e-05/0.6288, allocations: 55.8 kB / 0.5307 GB, free: 6.633 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001335/0.6302, allocations: 254.1 kB / 0.531 GB, free: 6.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 7.214e-06/0.6302, allocations: 0 / 0.531 GB, free: 6.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.03963/0.6698, allocations: 9.7 MB / 0.5404 GB, free: 12.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.67, allocations: 120.8 kB / 0.5406 GB, free: 12.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002025/0.672, allocations: 1.458 MB / 0.542 GB, free: 10.95 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003008/0.6724, allocations: 61.77 kB / 0.542 GB, free: 10.88 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008732/0.6732, allocations: 1.154 MB / 0.5432 GB, free: 9.711 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006794/0.6739, allocations: 0.6278 MB / 0.5438 GB, free: 9.074 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008504/0.6748, allocations: 0.5129 MB / 0.5443 GB, free: 8.555 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.87e-05/0.6749, allocations: 305.1 kB / 0.5446 GB, free: 8.254 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001731/0.6766, allocations: 0.9423 MB / 0.5455 GB, free: 7.309 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00235/0.679, allocations: 1.898 MB / 0.5473 GB, free: 4.969 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00428/0.6833, allocations: 2.996 MB / 0.5503 GB, free: 1.535 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.021e-05/0.6833, allocations: 8 kB / 0.5503 GB, free: 1.527 MB / 414.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01087/0.6942, allocations: 3.896 MB / 0.5541 GB, free: 13.61 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.612e-05/0.6942, allocations: 19.98 kB / 0.5541 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.006e-05/0.6943, allocations: 32.56 kB / 0.5541 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005537/0.6998, allocations: 1.176 MB / 0.5553 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002049/0.7019, allocations: 0.5772 MB / 0.5558 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009465/0.7114, allocations: 6.921 MB / 0.5626 GB, free: 4.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/0.7136, allocations: 147.6 kB / 0.5627 GB, free: 4.285 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003814/0.714, allocations: 163.9 kB / 0.5629 GB, free: 4.125 MB / 430.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.001062/0.715, allocations: 484.9 kB / 0.5634 GB, free: 3.641 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000517/0.7156, allocations: 181.7 kB / 0.5635 GB, free: 3.461 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00981/0.7254, allocations: 3.254 MB / 0.5667 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.958e-05/0.7254, allocations: 20 kB / 0.5667 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.7254, allocations: 0 / 0.5667 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-05/0.7255, allocations: 15.95 kB / 0.5667 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01332/0.7388, allocations: 5.448 MB / 0.5721 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.7388, allocations: 4 kB / 0.5721 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.7401, allocations: 303.6 kB / 0.5724 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005005/0.7451, allocations: 1.044 MB / 0.5734 GB, free: 9.234 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002015/0.7453, allocations: 79.94 kB / 0.5735 GB, free: 9.156 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00815/0.7535, allocations: 6.281 MB / 0.5796 GB, free: 2.445 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/0.7535, allocations: 11.88 kB / 0.5796 GB, free: 2.434 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01041/0.7639, allocations: 4.121 MB / 0.5836 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000503/0.7644, allocations: 238.8 kB / 0.5839 GB, free: 13.99 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003991/0.7648, allocations: 40 kB / 0.5839 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001323/0.7662, allocations: 71.89 kB / 0.584 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004399/0.7666, allocations: 177.7 kB / 0.5841 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001948/0.7668, allocations: 87.95 kB / 0.5842 GB, free: 13.62 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001367/0.7682, allocations: 0.9585 MB / 0.5851 GB, free: 12.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.7682, allocations: 0 / 0.5851 GB, free: 12.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004295/0.7725, allocations: 1.241 MB / 0.5864 GB, free: 11.42 MB / 462.1 MB 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.003029/0.7756, allocations: 1.284 MB / 0.5876 GB, free: 10.13 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006081/0.7817, allocations: 3.049 MB / 0.5906 GB, free: 7.023 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.7817, allocations: 1.938 kB / 0.5906 GB, free: 7.023 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003071/0.7848, allocations: 1.625 MB / 0.5922 GB, free: 5.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002148/0.7869, allocations: 297.5 kB / 0.5925 GB, free: 5.051 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1794/0.9663, allocations: 5.073 MB / 0.5974 GB, free: 129.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001128/0.9675, allocations: 1.481 MB / 0.5989 GB, free: 129 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002006/0.9695, allocations: 460.3 kB / 0.5993 GB, free: 129 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005881/0.9701, allocations: 278.9 kB / 0.5996 GB, free: 129 MB / 462.1 MB Notification: Performance of SimCode: time 9.22e-07/0.9701, allocations: 5.5 kB / 0.5996 GB, free: 129 MB / 462.1 MB Notification: Performance of Templates: time 0.06345/1.034, allocations: 44.67 MB / 0.6432 GB, free: 116.1 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.makefile (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.sim & ./Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1)